From 061d0e3e6a7dac6f1bf4c07433bce02e9930acd8 Mon Sep 17 00:00:00 2001 From: Aaron Abbott Date: Tue, 13 Jun 2023 13:16:32 -0400 Subject: [PATCH] Update snapshot tests and pin upstream versions (#254) --- dev-constraints.txt | 5 +++++ .../tests/__snapshots__/test_detector.ambr | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/dev-constraints.txt b/dev-constraints.txt index 5e7ddf64..5b44a65a 100644 --- a/dev-constraints.txt +++ b/dev-constraints.txt @@ -13,3 +13,8 @@ types-protobuf==3.20.4.2 types-requests==2.28.11.2 types-setuptools==65.5.0.2 types-urllib3==1.26.25.1 + +# pinned for snapshot tests. this should be bumped regularly and snapshots updated by running +# tox -f py311-test -- --snapshot-update +opentelemetry-api==1.18.0 +opentelemetry-sdk==1.18.0 diff --git a/opentelemetry-resourcedetector-gcp/tests/__snapshots__/test_detector.ambr b/opentelemetry-resourcedetector-gcp/tests/__snapshots__/test_detector.ambr index c8b2eeb1..2e07929a 100644 --- a/opentelemetry-resourcedetector-gcp/tests/__snapshots__/test_detector.ambr +++ b/opentelemetry-resourcedetector-gcp/tests/__snapshots__/test_detector.ambr @@ -19,7 +19,7 @@ 'service.name': 'unknown_service', 'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', - 'telemetry.sdk.version': '1.17.0', + 'telemetry.sdk.version': '1.18.0', }) # --- # name: test_detects_gke[regional] @@ -33,7 +33,7 @@ 'service.name': 'unknown_service', 'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', - 'telemetry.sdk.version': '1.17.0', + 'telemetry.sdk.version': '1.18.0', }) # --- # name: test_detects_gke[zonal] @@ -47,6 +47,6 @@ 'service.name': 'unknown_service', 'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', - 'telemetry.sdk.version': '1.17.0', + 'telemetry.sdk.version': '1.18.0', }) # ---