Skip to content

Commit

Permalink
do not use jinja in assert, we can use filters directly
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Dec 8, 2023
1 parent b203ce3 commit fefe479
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/test_playbooks/content_view_filter_rule_info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
ansible.builtin.assert:
fail_msg: "Ensuring content view filter info is valid failed!"
that:
- "{{ result['content_view_filter_rules']|length }} != 0"
- result['content_view_filter_rules']|length != 0


- name: "Fetch content_view_filter_info - deb exlude"
Expand Down
8 changes: 4 additions & 4 deletions tests/test_playbooks/filters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
msg: "{{ 'Test__String)' | theforeman.foreman.cp_label }}"
- assert:
that:
- "{{ 'Test String' | theforeman.foreman.cp_label == 'Test_String' }}"
- "{{ 'Test__String' | theforeman.foreman.cp_label == 'Test__String' }}"
- "{{ 'Test--String' | theforeman.foreman.cp_label == 'Test--String' }}"
- "{{ 'Test (String) 1234' | theforeman.foreman.cp_label == 'Test_String_1234' }}"
- "'Test String' | theforeman.foreman.cp_label == 'Test_String'"
- "'Test__String' | theforeman.foreman.cp_label == 'Test__String'"
- "'Test--String' | theforeman.foreman.cp_label == 'Test--String'"
- "'Test (String) 1234' | theforeman.foreman.cp_label == 'Test_String_1234'"
...

0 comments on commit fefe479

Please sign in to comment.