From 35483f2f3bda386169bd5877866439cd09f2ca49 Mon Sep 17 00:00:00 2001 From: Peter Ondrejka Date: Wed, 24 Apr 2024 13:40:48 +0200 Subject: [PATCH] os fixtures updated for rhel9 --- pytest_fixtures/component/os.py | 2 +- pytest_fixtures/component/puppet.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pytest_fixtures/component/os.py b/pytest_fixtures/component/os.py index 0c94baa09ce..847c7554ecf 100644 --- a/pytest_fixtures/component/os.py +++ b/pytest_fixtures/component/os.py @@ -17,7 +17,7 @@ def default_os( """ os = getattr(request, 'param', None) if os is None: - search_string = 'name="RedHat" AND (major="6" OR major="7" OR major="8")' + search_string = 'name="RedHat" AND (major="6" OR major="7" OR major="8" OR major="9")' else: version = os.split(' ')[1].split('.') search_string = f'family="Redhat" AND major="{version[0]}" AND minor="{version[1]}"' diff --git a/pytest_fixtures/component/puppet.py b/pytest_fixtures/component/puppet.py index c531c7888ac..3f05a7dfc41 100644 --- a/pytest_fixtures/component/puppet.py +++ b/pytest_fixtures/component/puppet.py @@ -119,7 +119,7 @@ def session_puppet_enabled_proxy(session_puppet_enabled_sat): @pytest.fixture(scope='session') def session_puppet_default_os(session_puppet_enabled_sat): """Default OS on the puppet-enabled Satellite""" - search_string = 'name="RedHat" AND (major="6" OR major="7" OR major="8")' + search_string = 'name="RedHat" AND (major="6" OR major="7" OR major="8" OR major="9")' return ( session_puppet_enabled_sat.api.OperatingSystem() .search(query={'search': search_string})[0]