Skip to content

Commit

Permalink
Add test for BZ:2193010 in provisioning templates (#14027)
Browse files Browse the repository at this point in the history
Add check to cover BZ:2193010 in provisioning templates

Signed-off-by: Gaurav Talreja <[email protected]>
  • Loading branch information
Gauravtalreja1 authored Feb 12, 2024
1 parent 66a62d9 commit caa4b4e
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 caa4b4e

Please sign in to comment.