You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/units
Sloane Hertel 43e55db208
ansible-galaxy - add signature verification of the MANIFEST.json (#76681)
* ansible-galaxy collection install|verify:

  - Support verifying the origin of the MANIFEST.json when the Galaxy server has provided signatures.
  - Allow supplemental signatures to use during verification on the CLI/requirements file.

* ansible-galaxy collection install:

  - Support disabling signature verification. This silences the warning provided by ansible-galaxy if the Galaxy server provided signatures it cannot use because no keyring is configured.
  - Store Galaxy server metadata alongside installed collections for provenance. This is used by 'ansible-galaxy collection verify --offline'.

* Add unit tests for method that gets signatures from a Galaxy server

* Add integration tests for user-provided signature sources

- Test CLI option combinations
- Test installing collections with valid/invalid signature sources
- Test disabling GPG verification when installing collections
- Test verifying collections with valid/invalid signature sources

* Make signature verification advisory-by-default if signatures are provided by the Galaxy server

- Make the default keyring None
- Warn if the keyring is None but the Galaxy server provided signatures
- Error if the keyring is None but the user supplied signatures
- Error if the keyring is not None but is invalid

* changelog

* add ansible-galaxy user documentation for new options

Co-authored-by: Matt Martz <matt@sivel.net>
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
Co-authored-by: Sandra McCann <samccann@redhat.com>
Co-authored-by: Andy Mott <amott@redhat.com>
Co-authored-by: John R Barker <john@johnrbarker.com>
3 years ago
..
_vendor Another unit test fix for Python 3.10. (#74628) 3 years ago
ansible_test Remove Shippable CI provider from ansible-test. 3 years ago
cli ansible-galaxy - add signature verification of the MANIFEST.json (#76681) 3 years ago
compat Avoid deprecated TestCase functions in unit tests. (#76678) 3 years ago
config Provide better decryption errors for single vault values (#72362) 4 years ago
errors Fix YAML error message when error is at the end of the file (#73241) 4 years ago
executor Allow specifying specific python via shebang (#76677) 3 years ago
galaxy ansible-galaxy - add signature verification of the MANIFEST.json (#76681) 3 years ago
inventory Clean up unit test boilerplate. 4 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 9 years ago
mock Clean up unit tests to prepare for pylint update. (#75473) 3 years ago
module_utils Don't assert stdlib behavior, just assert that urllib was called 3 years ago
modules Resubmit: Use SystemdStrategy for Debian in the hostname module (#76929) 3 years ago
parsing Avoid deprecated TestCase functions in unit tests. (#76678) 3 years ago
playbook Avoid deprecated TestCase functions in unit tests. (#76678) 3 years ago
plugins ssh connection avoid parsiing own debug (#76732) 3 years ago
regex Add toggle to control invalid character substitution in group names (#52748) 6 years ago
template Avoid deprecated TestCase functions in unit tests. (#76678) 3 years ago
utils check finder type before passing path (#76448) 3 years ago
vars Remove empty setUp/tearDown/tearDownClass methods in test classes. 5 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
requirements.txt ansible-test - split controller/target testing (#75605) 3 years ago
test_constants.py Remove some constants.py deprecated items (#70466) 4 years ago
test_context.py Clean up unit test boilerplate. 4 years ago