Skip to content

Commit 060e8d9

Browse files
authored
Merge pull request #646 from Boavizta/643-upgrade-version-of-boaviztapi-to-137-and-adjust-tests-accordingly
Upgrade version of BoaviztAPI to 1.3.7 and adjust tests accordingly.
2 parents 1cc0359 + cd49741 commit 060e8d9

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## Unreleased
99

1010
_This paragraph may describe WIP/unreleased features. They are merged to main branch but not tagged._
11+
- [Upgrade version of BoaviztAPI to 1.3.7 and adjust tests accordingly](https://github.com/Boavizta/cloud-scanner/issues/643)
1112
- [Return API and scanner version in the json output](https://github.com/Boavizta/cloud-scanner/issues/265)
1213
- [Upgrade to BoaviztAPI 1.3.3 · Issue #633 · Boavizta/cloud-scanner](https://github.com/Boavizta/cloud-scanner/issues/633)
1314
- [chore(deps): bump serde_json from 1.0.132 to 1.0.133](https://github.com/Boavizta/cloud-scanner/issues/#614)

cloud-scanner-cli/src/boavizta_api_v1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ mod tests {
357357
async fn get_api_version() {
358358
let api: BoaviztaApiV1 = BoaviztaApiV1::new(TEST_API_URL);
359359
let version = api.get_api_version().await;
360-
let expected = Some("1.3.6".to_owned());
360+
let expected = Some("1.3.7".to_owned());
361361
assert_eq!(version, expected, "Versions do not match");
362362
}
363363

cloud-scanner-cli/test-data/DEFAULT_RAW_IMPACTS_OF_M6GXLARGE_1HRS_FR.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"impacts": {
33
"gwp": {
44
"embedded": {
5-
"value": 0.0016,
6-
"min": 0.0008995,
7-
"max": 0.002545,
5+
"value": 0.001,
6+
"min": 0.0005997,
7+
"max": 0.001697,
88
"warnings": [
99
"End of life is not included in the calculation"
1010
]
@@ -19,9 +19,9 @@
1919
},
2020
"adp": {
2121
"embedded": {
22-
"value": 2.1e-7,
23-
"min": 1.448e-7,
24-
"max": 3.105e-7,
22+
"value": 1.4e-7,
23+
"min": 9.656e-8,
24+
"max": 2.07e-7,
2525
"warnings": [
2626
"End of life is not included in the calculation"
2727
]
@@ -36,9 +36,9 @@
3636
},
3737
"pe": {
3838
"embedded": {
39-
"value": 0.021,
40-
"min": 0.01186,
41-
"max": 0.03331,
39+
"value": 0.014,
40+
"min": 0.007907,
41+
"max": 0.02221,
4242
"warnings": [
4343
"End of life is not included in the calculation"
4444
]

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ services:
5757
boavizta_api:
5858
container_name: "boavizta_api"
5959
hostname: boavizta
60-
image: ghcr.io/boavizta/boaviztapi:1.3
60+
image: ghcr.io/boavizta/boaviztapi:1.3.7
6161
ports:
6262
- "5000:5000"
6363
networks:

0 commit comments

Comments
 (0)