Skip to content
Draft
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
11 changes: 8 additions & 3 deletions tests/integration_tests/modules/test_ubuntu_pro.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ def maybe_install_cloud_init(session_cloud: IntegrationCloud):

client.install_new_cloud_init(source)
session_cloud.snapshot_id = client.snapshot()
client.destroy()

return {"image_id": session_cloud.snapshot_id}

Expand All @@ -252,8 +251,14 @@ def test_custom_services(self, session_cloud: IntegrationCloud):
launch_kwargs=launch_kwargs,
) as client:
log = client.read_from_file("/var/log/cloud-init.log")
verify_clean_log(log)
verify_clean_boot(client)
ignore_warnings = []
if "azure" == PLATFORM:
# Pro images sometimes hit a single 404 in early provisioning
ignore_warnings.append(
"Polling IMDS failed attempt 1 with exception:"
" UrlError('404"
)
verify_clean_boot(client, ignore_warnings=ignore_warnings)
assert_ua_service_noop(client)
assert is_attached(client)
services_status = get_services_status(client)
Expand Down
Loading