From b3f6a0886e61c5f0103e057316a9f10ca5eaeb7d Mon Sep 17 00:00:00 2001 From: Paride Legovini Date: Tue, 22 Feb 2022 12:50:06 +0100 Subject: [PATCH] test_ppa_source: accept both http and https URLs software-properties 0.99.18 now adds PPAs with HTTPS URLs in sources.list when using add-apt-repository. This change only affects Jammy. We could use a regexp to match both, but it's simpler to just remove the protocol from the search string. --- tests/integration_tests/modules/test_apt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration_tests/modules/test_apt.py b/tests/integration_tests/modules/test_apt.py index 6b17512a5be..dddaca0b6a3 100644 --- a/tests/integration_tests/modules/test_apt.py +++ b/tests/integration_tests/modules/test_apt.py @@ -154,7 +154,7 @@ def test_ppa_source(self, class_client: IntegrationInstance): ) host = "launchpad" if release == "jammy" else "launchpadcontent" assert ( - f"http://ppa.{host}.net/simplestreams-dev/trunk/ubuntu" + f"://ppa.{host}.net/simplestreams-dev/trunk/ubuntu" in ppa_path_contents )