mirror of https://github.com/ansible/ansible.git
runtime-metadata sanity test: ignore pre-release and build identifier (#85198)
* Ignore pre-release and build identifier. * Add tests. * Improve changelog fragment. Co-authored-by: Matt Clay <matt@mystile.com> * Extend tests. --------- Co-authored-by: Matt Clay <matt@mystile.com>pull/86163/head
parent
6a4b199054
commit
89ba882b08
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- ansible-test - The runtime-metadata sanity test now ignores pre-release and build identifiers in collection versions. This prevents errors if a tombstone version is ``X.0.0``, while the collection's version is ``X.0.0-prerelease`` (https://github.com/ansible/ansible/issues/85193)."
|
||||
@ -0,0 +1,5 @@
|
||||
namespace: ns
|
||||
name: prerelease
|
||||
version: 3.0.0-prerelease
|
||||
authors:
|
||||
- Ansible
|
||||
@ -0,0 +1,25 @@
|
||||
plugin_routing:
|
||||
modules:
|
||||
deprecated_module:
|
||||
deprecation:
|
||||
removal_version: 4.0.0
|
||||
warning_text: Will no longer be there.
|
||||
tombstoned_module:
|
||||
tombstone:
|
||||
removal_version: 3.0.0
|
||||
warning_text: Is no longer there.
|
||||
tombstoned_module_with_prerelease_version:
|
||||
tombstone:
|
||||
removal_version: 3.0.0-a1
|
||||
warning_text: Is no longer there.
|
||||
tombstoned_module_with_prerelease_and_build_meta_version:
|
||||
tombstone:
|
||||
removal_version: 3.0.0-a1+bla.test.1234567
|
||||
warning_text: Is no longer there.
|
||||
tombstoned_module_with_build_meta_version:
|
||||
tombstone:
|
||||
removal_version: 3.0.0+bla.test.1234567
|
||||
warning_text: Is no longer there.
|
||||
module_with_invalid_removal_version:
|
||||
tombstone:
|
||||
removal_version: 4.0.0
|
||||
@ -0,0 +1 @@
|
||||
meta/runtime.yml:0:0: The tombstone removal_version ('4.0.0') must not be after the current version (SemanticVersion('3.0.0')) for dictionary value @ data['plugin_routing']['modules']['module_with_invalid_removal_version']['tombstone']['removal_version']. Got '4.0.0'
|
||||
Loading…
Reference in New Issue