Skip to content

Commit

Permalink
Add check to cover BZ:2193010 in provisioning templates
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Talreja <[email protected]>
  • Loading branch information
Gauravtalreja1 committed Feb 9, 2024
1 parent 0b08acd commit 74e2223
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 74e2223

Please sign in to comment.