From 1888268c47aa0c2b5b3dcb1a8a1154ccb550c936 Mon Sep 17 00:00:00 2001 From: Chad Smith Date: Thu, 19 Sep 2024 09:44:02 -0600 Subject: [PATCH] tests(pro): bump pycloudlib add noble release to pro tests Since Noble is an LTS which supports Ubuntu Pro add integration test coverage for that feature. Bump pycloudlib dependency to 1!9.2 which allows cloud-init integration tests to obtain service_account_email configuration from the .config/pycloudlib.toml: [gce] credentials_path = without the need to also provide `service_account_email` in pycloudlib.toml. --- integration-requirements.txt | 2 +- tests/integration_tests/modules/test_ubuntu_pro.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integration-requirements.txt b/integration-requirements.txt index a34b63e7072..3727021e12b 100644 --- a/integration-requirements.txt +++ b/integration-requirements.txt @@ -2,7 +2,7 @@ # PyPI requirements for cloud-init integration testing # https://cloudinit.readthedocs.io/en/latest/topics/integration_tests.html # -pycloudlib>=1!6.7.0,<1!8 +pycloudlib>=1!6.7.0,<1!9.3 # Avoid breaking change in `testpaths` treatment forced # test/unittests/conftest.py to be loaded by our integration-tests tox env diff --git a/tests/integration_tests/modules/test_ubuntu_pro.py b/tests/integration_tests/modules/test_ubuntu_pro.py index c9fe6af0757..a283cb00c71 100644 --- a/tests/integration_tests/modules/test_ubuntu_pro.py +++ b/tests/integration_tests/modules/test_ubuntu_pro.py @@ -236,7 +236,7 @@ def maybe_install_cloud_init(session_cloud: IntegrationCloud): @pytest.mark.skipif( - not all([IS_UBUNTU, CURRENT_RELEASE in [BIONIC, FOCAL, JAMMY]]), + not all(CURRENT_RELEASE in [BIONIC, FOCAL, JAMMY, NOBLE]), reason="Test runs on Ubuntu LTS releases only", ) @pytest.mark.skipif(