From 74e22232aebbe3a9147b96043c2fd1347fc0ec2e Mon Sep 17 00:00:00 2001 From: Gaurav Talreja Date: Fri, 9 Feb 2024 20:07:22 +0530 Subject: [PATCH] Add check to cover BZ:2193010 in provisioning templates Signed-off-by: Gaurav Talreja --- tests/foreman/api/test_provisioningtemplate.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/foreman/api/test_provisioningtemplate.py b/tests/foreman/api/test_provisioningtemplate.py index b0128fca0a1..95f0b3883f0 100644 --- a/tests/foreman/api/test_provisioningtemplate.py +++ b/tests/foreman/api/test_provisioningtemplate.py @@ -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 """ @@ -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'} @@ -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(