diff options
author | Sergey <sshnaidm@users.noreply.github.com> | 2021-07-29 21:50:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-29 11:50:29 -0700 |
commit | 40ca87a963736ac1420f3b62b37a8a3bae93da50 (patch) | |
tree | fc681703864793f584d3d46bbf4e5fbb1b58b9cf | |
parent | e2b0592f6438265b64efb74064f2799ac9d27410 (diff) | |
download | ansible-40ca87a963736ac1420f3b62b37a8a3bae93da50.tar.gz |
Add packaging to requirement of ansible-test (#75356)
* Add packaging to requirement of ansible-test
Fix #75353
After requires_ansible field was added as mandatory to runtime.yml
file, ansible-test fails to check this field if it doesn't have
packaging module.
[1] https://github.com/ansible/galaxy-importer/pull/124
3 files changed, 4 insertions, 0 deletions
diff --git a/changelogs/fragments/75356-add-requirement-to-ansible-test.yml b/changelogs/fragments/75356-add-requirement-to-ansible-test.yml new file mode 100644 index 0000000000..1daf884d20 --- /dev/null +++ b/changelogs/fragments/75356-add-requirement-to-ansible-test.yml @@ -0,0 +1,2 @@ +bugfixes: +- ansible-test - add packaging python module to ``ansible-doc`` sanity test requirements. diff --git a/test/integration/targets/ansible-test/ansible_collections/ns/col/meta/runtime.yml b/test/integration/targets/ansible-test/ansible_collections/ns/col/meta/runtime.yml index 1ac15484db..fee22ad8c6 100644 --- a/test/integration/targets/ansible-test/ansible_collections/ns/col/meta/runtime.yml +++ b/test/integration/targets/ansible-test/ansible_collections/ns/col/meta/runtime.yml @@ -1,3 +1,4 @@ +requires_ansible: '>=2.11' # force ansible-doc to check the Ansible version (requires packaging) plugin_routing: modules: hi: diff --git a/test/lib/ansible_test/_data/requirements/sanity.ansible-doc.txt b/test/lib/ansible_test/_data/requirements/sanity.ansible-doc.txt index cec0eed3cd..c910f106a8 100644 --- a/test/lib/ansible_test/_data/requirements/sanity.ansible-doc.txt +++ b/test/lib/ansible_test/_data/requirements/sanity.ansible-doc.txt @@ -1,2 +1,3 @@ jinja2 # ansible-core requirement pyyaml # ansible-core requirement +packaging # ansible-doc requirement |