Skip to content

Commit

Permalink
Fix number of imported templates
Browse files Browse the repository at this point in the history
The number of total templates and templates
containing robottelo should match this repo and branch
https://github.com/SatelliteQE/foreman_templates/tree/automation

I have no idea why it was once changed to a wrong number without further
explanation:
95434f5
  • Loading branch information
dosas committed Mar 12, 2024
1 parent 73b7bd2 commit 2fdb1fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/foreman/api/test_templatesync.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def test_import_filtered_templates_from_git_with_negate(self, module_org, module
not_imported_count = [
template['imported'] for template in filtered_imported_templates['message']['templates']
].count(False)
assert not_imported_count == 9
assert not_imported_count == 8
ptemplates = module_target_sat.api.ProvisioningTemplate().search(
query={'per_page': '100', 'search': 'name~jenkins', 'organization_id': module_org.id}
)
Expand Down Expand Up @@ -955,7 +955,7 @@ def test_positive_export_json_output(
imported_count = [
template['imported'] for template in imported_templates['message']['templates']
].count(True)
assert imported_count == 17 # Total Count
assert imported_count == 18 # Total Count
# Export some filtered templates to local dir
_, dir_path = create_import_export_local_dir
exported_templates = target_sat.api.Template().exports(
Expand All @@ -964,7 +964,7 @@ def test_positive_export_json_output(
exported_count = [
template['exported'] for template in exported_templates['message']['templates']
].count(True)
assert exported_count == 17
assert exported_count == 18
assert 'name' in exported_templates['message']['templates'][0]
assert (
target_sat.execute(
Expand Down

0 comments on commit 2fdb1fc

Please sign in to comment.