diff --git a/tests/integration_tests/modules/test_apt.py b/tests/integration_tests/modules/test_apt.py index 6b3a8b7cc2d..a74312656e9 100644 --- a/tests/integration_tests/modules/test_apt.py +++ b/tests/integration_tests/modules/test_apt.py @@ -152,9 +152,9 @@ def test_ppa_source(self, class_client: IntegrationInstance): "/etc/apt/sources.list.d/" "simplestreams-dev-ubuntu-trunk-{}.list".format(release) ) - + host = "launchpad" if release == "jammy" else "launchpadcontent" assert ( - "http://ppa.launchpad.net/simplestreams-dev/trunk/ubuntu" + f"http://ppa.{host}.net/simplestreams-dev/trunk/ubuntu" in ppa_path_contents )