From cd49741e7e1e6f05d2ea97f4af8f88e28a731dc0 Mon Sep 17 00:00:00 2001 From: olivier de Meringo Date: Thu, 19 Dec 2024 16:50:29 +0000 Subject: [PATCH] Upgrade version of BoaviztAPI to 1.3.7 and adjust tests accordingly. --- CHANGELOG.md | 1 + cloud-scanner-cli/src/boavizta_api_v1.rs | 2 +- ...FAULT_RAW_IMPACTS_OF_M6GXLARGE_1HRS_FR.json | 18 +++++++++--------- docker-compose.yml | 2 +- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b397f46..cd093f40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased _This paragraph may describe WIP/unreleased features. They are merged to main branch but not tagged._ +- [Upgrade version of BoaviztAPI to 1.3.7 and adjust tests accordingly](https://github.com/Boavizta/cloud-scanner/issues/643) - [Return API and scanner version in the json output](https://github.com/Boavizta/cloud-scanner/issues/265) - [Upgrade to BoaviztAPI 1.3.3 · Issue #633 · Boavizta/cloud-scanner](https://github.com/Boavizta/cloud-scanner/issues/633) - [chore(deps): bump serde_json from 1.0.132 to 1.0.133](https://github.com/Boavizta/cloud-scanner/issues/#614) diff --git a/cloud-scanner-cli/src/boavizta_api_v1.rs b/cloud-scanner-cli/src/boavizta_api_v1.rs index 9a773f14..4086fa30 100644 --- a/cloud-scanner-cli/src/boavizta_api_v1.rs +++ b/cloud-scanner-cli/src/boavizta_api_v1.rs @@ -357,7 +357,7 @@ mod tests { async fn get_api_version() { let api: BoaviztaApiV1 = BoaviztaApiV1::new(TEST_API_URL); let version = api.get_api_version().await; - let expected = Some("1.3.6".to_owned()); + let expected = Some("1.3.7".to_owned()); assert_eq!(version, expected, "Versions do not match"); } diff --git a/cloud-scanner-cli/test-data/DEFAULT_RAW_IMPACTS_OF_M6GXLARGE_1HRS_FR.json b/cloud-scanner-cli/test-data/DEFAULT_RAW_IMPACTS_OF_M6GXLARGE_1HRS_FR.json index d95c95b6..690fd80e 100644 --- a/cloud-scanner-cli/test-data/DEFAULT_RAW_IMPACTS_OF_M6GXLARGE_1HRS_FR.json +++ b/cloud-scanner-cli/test-data/DEFAULT_RAW_IMPACTS_OF_M6GXLARGE_1HRS_FR.json @@ -2,9 +2,9 @@ "impacts": { "gwp": { "embedded": { - "value": 0.0016, - "min": 0.0008995, - "max": 0.002545, + "value": 0.001, + "min": 0.0005997, + "max": 0.001697, "warnings": [ "End of life is not included in the calculation" ] @@ -19,9 +19,9 @@ }, "adp": { "embedded": { - "value": 2.1e-7, - "min": 1.448e-7, - "max": 3.105e-7, + "value": 1.4e-7, + "min": 9.656e-8, + "max": 2.07e-7, "warnings": [ "End of life is not included in the calculation" ] @@ -36,9 +36,9 @@ }, "pe": { "embedded": { - "value": 0.021, - "min": 0.01186, - "max": 0.03331, + "value": 0.014, + "min": 0.007907, + "max": 0.02221, "warnings": [ "End of life is not included in the calculation" ] diff --git a/docker-compose.yml b/docker-compose.yml index e5e4b5ac..a1f26019 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -57,7 +57,7 @@ services: boavizta_api: container_name: "boavizta_api" hostname: boavizta - image: ghcr.io/boavizta/boaviztapi:1.3 + image: ghcr.io/boavizta/boaviztapi:1.3.7 ports: - "5000:5000" networks: