summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/plugin_namespace/tasks/main.yml
blob: 19bdd3a0eb8a68ea56c346bc86f8c2680f471af4 (plain)
1
2
3
4
5
6
7
8
9
10
11
- 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