From ad26ee0cd39418f5944a9513a682fee13efa1db2 Mon Sep 17 00:00:00 2001 From: Chad Smith Date: Mon, 21 Feb 2022 14:17:42 -0700 Subject: [PATCH] tests: on official EC2. cloud-id actually startswith aws not ec2 --- tests/integration_tests/modules/test_combined.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration_tests/modules/test_combined.py b/tests/integration_tests/modules/test_combined.py index 7a9a6e27fcf..05499580cbd 100644 --- a/tests/integration_tests/modules/test_combined.py +++ b/tests/integration_tests/modules/test_combined.py @@ -309,10 +309,10 @@ def test_instance_json_ec2(self, class_client: IntegrationInstance): v1_data = data["v1"] assert v1_data["cloud_name"] == "aws" assert v1_data["platform"] == "ec2" - # Different regions will show up as ec2-(gov|china) - assert v1_data["cloud_id"].startswith("ec2") + # Different regions will show up as aws-(gov|china) + assert v1_data["cloud_id"].startswith("aws") assert f"{v1_data['cloud_id']}" == client.read_from_file( - "/run/cloud-init/cloud-id-ec2" + "/run/cloud-init/cloud-id-aws" ) assert v1_data["subplatform"].startswith("metadata") assert (