Skip to content

Commit

Permalink
test export of cloned template (#15130)
Browse files Browse the repository at this point in the history
(cherry picked from commit b9d92b2)
  • Loading branch information
pondrejk authored and web-flow committed May 23, 2024
1 parent a0330b4 commit 23ca1a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/foreman/ui/test_jobtemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 23ca1a8

Please sign in to comment.