ansible/test/units/utils
Matt Martz d3ec31f8d5
Support pre-releases via new SemanticVersion (#68258)
* Support pre-releases via new SemanticVersion. Fixes #64905

* Don't treat buildmeta as prerelease

* Don't inherit from str and int

* Add helper method to try and construct a SemanticVersion from a LooseVersion

* Don't count major 0 as pre-release, it's different

* Guard against invalid or no version in LooseVersion

* return a bool

* Add integration tests for pre-release

* Fix up lingering issues with comparisons

* typo fix

* Always allow pre-releases in verify

* Move pre-release filtering into CollectionRequirement, add messaging when a collection only contains pre-releases

* Update changelog

* If explicit requirement allow pre releases

* Enable pre-releases for tar installs, and collections already installed when they are pre-releases

* Drop --pre-release alias, make arg name more clear

* Simplify code into a single line

* Remove build metadata precedence, add some comments, and is_stable helper

* Improve from_loose_version

* Increase test coverage

* linting fix

* Update changelog
2020-03-23 16:04:07 -05:00
..
display display - remove extra new line after warning message (#65199) 2020-01-24 12:10:04 -05:00
fixtures/collections/ansible_collections/my_namespace/my_collection/plugins Fix collection loader and add unit tests. (#58701) 2019-07-09 17:31:33 -07:00
__init__.py
test_cleanup_tmp_file.py Use atexit to cleanup tmp dirs (#56532) 2019-06-28 16:19:27 -04:00
test_collection_loader.py add subdir support to collection loading (#60682) 2019-08-21 10:45:04 +01:00
test_context_objects.py Unit test cleanup. (#60315) 2019-08-09 08:31:13 -07:00
test_encrypt.py Update units to pass on macOS (#60435) 2019-08-12 15:13:07 -05:00
test_helpers.py
test_shlex.py
test_unsafe_proxy.py Ensure that data within a tuple is marked as unsafe (#65918) 2020-01-07 08:41:37 -06:00
test_vars.py combine filter: fine list handling (option b) (#57894) 2020-02-12 16:40:36 -05:00
test_version.py Support pre-releases via new SemanticVersion (#68258) 2020-03-23 16:04:07 -05:00