ansible-test: make sure tests are also run for the new plugin types (#73599)

* Make sure tests are also run for the new plugin types.
* New plugin types are not documentable.
This commit is contained in:
Felix Fontein 2021-02-13 23:05:16 +01:00 committed by GitHub
parent d092356fc5
commit 29aef842d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- "ansible-test - add the collection plugin directories ``plugin_utils`` and ``sub_plugins`` to list of plugin types. This ensures such plugins are tested for the ``import`` sanity test (https://github.com/ansible/ansible/pull/73599)."

View file

@ -193,6 +193,10 @@ class LayoutProvider(PathProvider):
'terminal',
'test',
'vars',
# The following are plugin directories not directly supported by ansible-core, but used in collections
# (https://github.com/ansible-collections/overview/blob/main/collection_requirements.rst#modules--plugins)
'plugin_utils',
'sub_plugins',
)
@abc.abstractmethod

View file

@ -58,6 +58,10 @@ class AnsibleDocTest(SanitySingleVersion):
'module_utils',
'terminal',
'test',
# The following are plugin directories not directly supported by ansible-core (and thus also not by ansible-doc)
# (https://github.com/ansible-collections/overview/blob/main/collection_requirements.rst#modules--plugins)
'plugin_utils',
'sub_plugins',
])
plugin_paths = [plugin_path for plugin_type, plugin_path in data_context().content.plugin_paths.items() if plugin_type not in unsupported_plugin_types]