Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.15.z] Add module_sync_kickstart_content to fixture_markers.py #13776

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pytest_fixtures/component/provisioning_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def module_sync_kickstart_content(
"""
repo_names = []
tasks = []
rhel_ver = request.param
rhel_ver = request.param['rhel_version']
if int(rhel_ver) <= 7:
repo_names.append(f'rhel{rhel_ver}')
else:
Expand Down
1 change: 1 addition & 0 deletions pytest_plugins/fixture_markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'content_hosts',
'module_provisioning_rhel_content',
'capsule_provisioning_rhel_content',
'module_sync_kickstart_content',
'rex_contenthost',
]

Expand Down
16 changes: 8 additions & 8 deletions tests/foreman/api/test_provisioningtemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def test_positive_build_pxe_default(self, tftpboot, module_target_sat):
in rendered
)

@pytest.mark.parametrize('module_sync_kickstart_content', [7, 8, 9], indirect=True)
@pytest.mark.rhel_ver_match('[^6]')
def test_positive_provision_template_check_net_interface(
self,
module_sync_kickstart_content,
Expand Down Expand Up @@ -286,7 +286,7 @@ def test_positive_provision_template_check_net_interface(
assert 'ifcfg-$sanitized_real' in provision_template

@pytest.mark.e2e
@pytest.mark.parametrize('module_sync_kickstart_content', [7, 8, 9], indirect=True)
@pytest.mark.rhel_ver_match('[^6]')
def test_positive_template_check_ipxe(
self,
module_sync_kickstart_content,
Expand Down Expand Up @@ -334,7 +334,7 @@ def test_positive_template_check_ipxe(
ks_param = 'ks=' if module_sync_kickstart_content.rhel_ver <= 8 else 'inst.ks='
assert ipxe_template.count(ks_param) == 1

@pytest.mark.parametrize('module_sync_kickstart_content', [7, 8, 9], indirect=True)
@pytest.mark.rhel_ver_match('[^6]')
def test_positive_template_check_vlan_parameter(
self,
module_sync_kickstart_content,
Expand Down Expand Up @@ -401,9 +401,9 @@ def test_positive_template_check_vlan_parameter(
ipxe_template = host.read_template(data={'template_kind': 'iPXE'})['template']
assert f'vlan={identifier}.{tag}:{identifier}' in ipxe_template

@pytest.mark.parametrize('module_sync_kickstart_content', [7, 8, 9], indirect=True)
@pytest.mark.parametrize('pxe_loader', ['uefi'], indirect=True)
@pytest.mark.parametrize('boot_mode', ['Static', 'DHCP'])
@pytest.mark.rhel_ver_match('[^6]')
def test_positive_template_subnet_with_boot_mode(
self,
module_sync_kickstart_content,
Expand Down Expand Up @@ -495,7 +495,7 @@ def test_positive_template_use_graphical_installer(
assert 'graphical' in render
assert 'skipx' not in render

@pytest.mark.parametrize('module_sync_kickstart_content', [8], indirect=True)
@pytest.mark.rhel_ver_match('[8]')
def test_positive_template_check_aap_snippet(
self,
module_sync_kickstart_content,
Expand Down Expand Up @@ -552,7 +552,7 @@ def test_positive_template_check_aap_snippet(
assert f'"host_config_key":"{config_key}"' in render
assert '{"package_install": "zsh"}' in render

@pytest.mark.parametrize('module_sync_kickstart_content', [7, 8, 9], indirect=True)
@pytest.mark.rhel_ver_match('[^6]')
def test_positive_template_check_rex_snippet(
self,
module_sync_kickstart_content,
Expand Down Expand Up @@ -631,7 +631,7 @@ def test_positive_template_check_rex_snippet(
)
assert ssh_key in rex_snippet

@pytest.mark.parametrize('module_sync_kickstart_content', [7, 8, 9], indirect=True)
@pytest.mark.rhel_ver_match('[^6]')
def test_positive_template_check_rex_pull_mode_snippet(
self,
module_sync_kickstart_content,
Expand Down Expand Up @@ -692,7 +692,7 @@ def test_positive_template_check_rex_pull_mode_snippet(
assert 'yggdrasil status' in rex_snippet
assert 'Remote execution pull provider successfully configured!' in rex_snippet

@pytest.mark.parametrize('module_sync_kickstart_content', [7, 8, 9], indirect=True)
@pytest.mark.rhel_ver_match('[^6]')
def test_positive_template_check_fips_enabled(
self,
module_sync_kickstart_content,
Expand Down
2 changes: 1 addition & 1 deletion tests/foreman/cli/test_bootdisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from robottelo.constants import HTTPS_MEDIUM_URL


@pytest.mark.parametrize('module_sync_kickstart_content', [7, 8, 9], indirect=True)
@pytest.mark.rhel_ver_match('[^6]')
def test_positive_bootdisk_download_https(
module_location,
module_sync_kickstart_content,
Expand Down
2 changes: 1 addition & 1 deletion tests/foreman/destructive/test_infoblox.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def test_plugin_installation(target_sat, command_args, command_opts, rpm_command


@pytest.mark.e2e
@pytest.mark.parametrize('module_sync_kickstart_content', [8], indirect=True)
@pytest.mark.rhel_ver_match('[8]')
def test_infoblox_end_to_end(
request,
module_sync_kickstart_content,
Expand Down
Loading