Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/integration_tests/modules/test_combined.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down