Debian Codegraph @

test/lib/ansible_test/config/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
6 modules:
7 # Configuration for modules/module_utils.
8 # These settings do not apply to other content in the collection.
9
10 python_requires: default
11 # Python versions supported by modules/module_utils.
12 # This setting is required.
13 #
14 # Possible values:
15 #
16 # - 'default' - All Python versions supported by Ansible.
17 # This is the default value if no configuration is provided.
18 # - 'controller' - All Python versions supported by the Ansible controller.
19 # This indicates the modules/module_utils can only run on the controller.
20 # Intended for use only with modules/module_utils that depend on the Ansible persistent connection helper, which only runs on the controller.
21 # Unit tests for modules/module_utils will be permitted to import any Ansible code, instead of only module_utils.
22 # - SpecifierSet - A PEP 440 specifier set indicating the supported Python versions.
23 # This is only needed when modules/module_utils do not support all Python versions supported by Ansible.
24 # It is not necessary to exclude versions which Ansible does not support, as this will be done automatically.
25 #
26 # What does this affect?
27 #
28 # - Unit tests will be skipped on any unsupported Python version.
29 # - Sanity tests that are Python version specific will be skipped on any unsupported Python version that is not supported by the controller.
30 #
31 # Sanity tests that are Python version specific will always be executed for Python versions supported by the controller, regardless of this setting.
32 # Reasons for this restriction include, but are not limited to:
33 #
34 # - AnsiballZ must be able to AST parse modules/module_utils on the controller, even though they may execute on a managed node.
35 # - ansible-doc must be able to AST parse modules/module_utils on the controller to display documentation.
36 # - ansible-test must be able to AST parse modules/module_utils to perform static analysis on them.
37 # - ansible-test must be able to execute portions of modules/module_utils to validate their argument specs.
38 #
39 # These settings only apply to modules/module_utils.
40 # It is not possible to declare supported Python versions for controller-only code.
41 # All Python versions supported by the controller must be supported by controller-only code.