You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/plugin_namespace/tasks/main.yml

12 lines
428 B
YAML

- set_fact:
filter_name: "{{ 1 | filter_name }}"
lookup_name: "{{ lookup('lookup_name') }}"
test_name_ok: "{{ 1 is test_name_ok }}"
- assert:
that:
# filter names are prefixed with a unique hash value to prevent shadowing of other plugins
- filter_name | regex_search('^ansible\.plugins\.filter\.[0-9]+_test_filter$')
- lookup_name == 'ansible.plugins.lookup.lookup_name'
- test_name_ok