Debian Codegraph @

ansible_collections/community/hashi_vault/tests/config.yml

raw
1 # Sample ansible-test configuration file for collections.
2 # Support for this feature was first added in ansible-core 2.12.
3 # Use of this file is optional.
4 # If used, this file must be placed in "tests/config.yml" relative to the base of the collection.
5 # see also:
6 # - https://github.com/ansible-collections/overview/issues/45#issuecomment-827853900
7 # - https://github.com/ansible/ansible/blob/devel/test/lib/ansible_test/config/config.yml
8
9 modules:
10 # Configuration for modules/module_utils.
11 # These settings do not apply to other content in the collection.
12
13 python_requires: '>=3.8'
14 # Python versions supported by modules/module_utils.
15 # This setting is required.
16 #
17 # Possible values:
18 #
19 # - 'default' - All Python versions supported by Ansible.
20 # This is the default value if no configuration is provided.
21 # - 'controller' - All Python versions supported by the Ansible controller.
22 # This indicates the modules/module_utils can only run on the controller.
23 # Intended for use only with modules/module_utils that depend on ansible-connection, which only runs on the controller.
24 # Unit tests for modules/module_utils will be permitted to import any Ansible code, instead of only module_utils.
25 # - SpecifierSet - A PEP 440 specifier set indicating the supported Python versions.
26 # This is only needed when modules/module_utils do not support all Python versions supported by Ansible.
27 # It is not necessary to exclude versions which Ansible does not support, as this will be done automatically.
28 #
29 # What does this affect?
30 #
31 # - Unit tests will be skipped on any unsupported Python version.
32 # - Sanity tests that are Python version specific will be skipped on any unsupported Python version that is not supported by the controller.
33 #
34 # Sanity tests that are Python version specific will always be executed for Python versions supported by the controller, regardless of this setting.
35 # Reasons for this restriction include, but are not limited to:
36 #
37 # - AnsiballZ must be able to AST parse modules/module_utils on the controller, even though they may execute on a managed node.
38 # - ansible-doc must be able to AST parse modules/module_utils on the controller to display documentation.
39 # - ansible-test must be able to AST parse modules/module_utils to perform static analysis on them.
40 # - ansible-test must be able to execute portions of modules/module_utils to validate their argument specs.
41 #
42 # These settings only apply to modules/module_utils.
43 # It is not possible to declare supported Python versions for controller-only code.
44 # All Python versions supported by the controller must be supported by controller-only code.