ansible/test/integration/targets/plugin_namespace/tasks/main.yml

12 lines
428 B
YAML
Raw Normal View History

- 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