From caa4b4e37d8c1c654154aaa300cb404c6960787b Mon Sep 17 00:00:00 2001 From: Gaurav Talreja Date: Mon, 12 Feb 2024 20:37:49 +0530 Subject: [PATCH] Add test for BZ:2193010 in provisioning templates (#14027) 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(