diff --git a/tests/integration_tests/modules/test_apt.py b/tests/integration_tests/modules/test_apt.py index dddaca0b6a3..2e07b33b04f 100644 --- a/tests/integration_tests/modules/test_apt.py +++ b/tests/integration_tests/modules/test_apt.py @@ -152,9 +152,10 @@ 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 ( - f"://ppa.{host}.net/simplestreams-dev/trunk/ubuntu" + "://ppa.launchpad.net/simplestreams-dev/trunk/ubuntu" + in ppa_path_contents + or "://ppa.launchpadcontent.net/simplestreams-dev/trunk/ubuntu" in ppa_path_contents )