3777c2e93d
* Fix plugin names when loading all plugins. Add an integration test to verify plugin __package__ and __name__ are correct. * Make sure filter and test names are unique. * Remove __package__ test. On Python 2.x __package__ is not set, but it is on Python 3.x.
11 lines
428 B
YAML
11 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
|