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:
parent
d092356fc5
commit
29aef842d7
3 changed files with 10 additions and 0 deletions
|
@ -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)."
|
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue