From 23ca1a8f22c28e949a400dc3783c364032e3d1a0 Mon Sep 17 00:00:00 2001 From: Peter Ondrejka Date: Thu, 23 May 2024 11:09:15 +0200 Subject: [PATCH] test export of cloned template (#15130) (cherry picked from commit b9d92b29bed083ef67fd786d595562e57a397f02) --- tests/foreman/ui/test_jobtemplate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/foreman/ui/test_jobtemplate.py b/tests/foreman/ui/test_jobtemplate.py index c4ad3fa6ccb..b7c27b3fd09 100644 --- a/tests/foreman/ui/test_jobtemplate.py +++ b/tests/foreman/ui/test_jobtemplate.py @@ -199,6 +199,8 @@ def test_positive_end_to_end(session, module_org, module_location, target_sat): assert target_sat.hostname in template_values['template']['template_editor']['editor'] session.jobtemplate.clone(template_new_name, {'template.name': template_clone_name}) assert session.jobtemplate.search(template_clone_name)[0]['Name'] == template_clone_name + dumped_content = target_sat.cli.JobTemplate.dump({'name': template_clone_name}) + assert len(dumped_content) > 0 for name in (template_new_name, template_clone_name): session.jobtemplate.delete(name) assert not session.jobtemplate.search(name)