Debian Codegraph @

ansible_collections/cisco/ucs/tests/config.yml

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