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

Add test for BZ:2193010 in provisioning templates #14027

Merged
merged 1 commit into from
Feb 12, 2024
Merged
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
5 changes: 4 additions & 1 deletion tests/foreman/api/test_provisioningtemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def test_positive_template_use_graphical_installer(
:expectedresults: Rendered template should contain value set as per use_graphical_installer
host parameter for respective rhel hosts.

:BZ: 2106753
:BZ: 2106753, 2193010

:customerscenario: true
"""
Expand All @@ -486,6 +486,8 @@ def test_positive_template_use_graphical_installer(
render = host.read_template(data={'template_kind': 'provision'})['template']
assert 'skipx' in render
assert 'text' in render
assert 'chvt 1' in render

# Using use_graphical_installer host param to override and use graphical mode to boot
host.host_parameters_attributes = [
{'name': 'use_graphical_installer', 'value': 'true', 'parameter_type': 'boolean'}
Expand All @@ -494,6 +496,7 @@ def test_positive_template_use_graphical_installer(
render = host.read_template(data={'template_kind': 'provision'})['template']
assert 'graphical' in render
assert 'skipx' not in render
assert 'chvt 6' in render

@pytest.mark.rhel_ver_match('[8]')
def test_positive_template_check_aap_snippet(
Expand Down
Loading