ansible/test/units
Sloane Hertel 97f011cf94
Add verify subcommand to 'ansible-galaxy collection' (#65618)
* [WIP] Add verify subcommand command to 'ansible-galaxy collection'

* Fix pep8 and use consistent display order

* WIP - docs

* Remove some redundancy in verify display messages by using an error queue for each collection

* Share common code and improve output format

* clean up documentation

* typo

* Apply suggestions from code review

Co-Authored-By: Sandra McCann <samccann@redhat.com>

* Move ModifiedContent namedtuple to the global scope

Add a public metadata property

Rename function to _get_json_from_tar_file

* Add some unit tests

* fix using common functions after rebase

* changelog

* Improve efficiency finding specific installed collections

Improve efficiency by only downloading the tar.gz from the galaxy server for comparison after checking that the collection has been installed

Handle multiple collection paths

Fix up tests

* pep8

* reword that for accuracy

* use more common code and verify collection name

* Improve error message and add documentation

* Update unit tests and add coverage for both local and remote collections that are unable to be located

* Only validate collections using the format collection_namespace.collection_name

Fix tests to reflect that

Fix documentation

* Fix a bug when a local collection does not contain a file

* pep8

* Fix formatting

Co-authored-by: Sandra McCann <samccann@redhat.com>
2020-02-14 08:57:04 -06:00
..
cli Fix using a URL for galaxy collection install (#65272) 2019-12-03 04:55:31 +10:00
compat
config config manager str type vault source (#65023) 2019-11-20 12:02:28 +10:00
contrib
errors Remove empty overridden unittest.setUp and unittest.tearDown methods. 2019-11-05 09:12:11 -08:00
executor Try to load action plugin from the same collection as the module (#66701) 2020-01-31 12:49:37 -05:00
galaxy Add verify subcommand to 'ansible-galaxy collection' (#65618) 2020-02-14 08:57:04 -06:00
inventory_test_data/group_vars
mock Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
module_utils CloudRetry/AWSRetry : Disable catching of NotFound exceptions (#67281) 2020-02-13 16:59:00 -05:00
modules Fix to - eos_vlans using state parameter replaced is giving odd behavior (#67318) 2020-02-12 11:12:12 -05:00
parsing Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
playbook Check if task file is specified for import_tasks (#57572) 2019-12-24 10:26:32 +05:30
plugins Fix UNC path support in the powershell shell plugin (#66604) 2020-02-04 16:34:11 +10:00
regex
template Do not treat AnsibleUndefined as being unsafe (#65202) 2019-11-25 15:06:29 +01:00
utils combine filter: fine list handling (option b) (#57894) 2020-02-12 16:40:36 -05:00
vars Remove empty setUp/tearDown/tearDownClass methods in test classes. 2019-11-06 08:14:29 -08:00
__init__.py
requirements.txt Fix ansible-test collections requirements installation. (#62181) 2019-09-12 02:00:33 -07:00
test_constants.py
test_context.py