mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-03 23:20:19 -07:00
[PR #10214/f7f2db36 backport][stable-10] Fix module_helper tests (#10216)
Some checks are pending
EOL CI / EOL Sanity (Ⓐ2.15) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.15+py2.7) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.15+py3.10) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.15+py3.5) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/3/) (push) Waiting to run
nox / Run extra sanity tests (push) Waiting to run
Some checks are pending
EOL CI / EOL Sanity (Ⓐ2.15) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.15+py2.7) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.15+py3.10) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.15+py3.5) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/3/) (push) Waiting to run
nox / Run extra sanity tests (push) Waiting to run
Fix module_helper tests (#10214)
Fix module_helper tests.
(cherry picked from commit f7f2db365e
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
30c5de00e9
commit
cea886562a
1 changed files with 18 additions and 2 deletions
|
@ -15,6 +15,14 @@
|
||||||
deprecator:
|
deprecator:
|
||||||
resolved_name: community.general
|
resolved_name: community.general
|
||||||
type: collection
|
type: collection
|
||||||
|
# Latest version:
|
||||||
|
attr2_depr_dict_dt2:
|
||||||
|
msg: Attribute attr2 is deprecated
|
||||||
|
version: 9.9.9
|
||||||
|
collection_name: community.general
|
||||||
|
deprecator:
|
||||||
|
resolved_name: community.general
|
||||||
|
type: ~
|
||||||
|
|
||||||
- name: test msimpleda 1
|
- name: test msimpleda 1
|
||||||
msimpleda:
|
msimpleda:
|
||||||
|
@ -26,7 +34,12 @@
|
||||||
that:
|
that:
|
||||||
- simple1.a == 1
|
- simple1.a == 1
|
||||||
- simple1.attr1 == "abc"
|
- simple1.attr1 == "abc"
|
||||||
- ("deprecations" not in simple1) or (attr2_depr_dict not in simple1.deprecations and attr2_depr_dict_dt not in simple1.deprecations)
|
- >-
|
||||||
|
("deprecations" not in simple1) or (
|
||||||
|
attr2_depr_dict not in simple1.deprecations and
|
||||||
|
attr2_depr_dict_dt not in simple1.deprecations and
|
||||||
|
attr2_depr_dict_dt2 not in simple1.deprecations
|
||||||
|
)
|
||||||
|
|
||||||
- name: test msimpleda 2
|
- name: test msimpleda 2
|
||||||
msimpleda:
|
msimpleda:
|
||||||
|
@ -43,4 +56,7 @@
|
||||||
- simple2.a == 2
|
- simple2.a == 2
|
||||||
- simple2.attr2 == "def"
|
- simple2.attr2 == "def"
|
||||||
- '"deprecations" in simple2'
|
- '"deprecations" in simple2'
|
||||||
- attr2_depr_dict in simple2.deprecations or attr2_depr_dict_dt in simple2.deprecations
|
- >-
|
||||||
|
attr2_depr_dict in simple2.deprecations or
|
||||||
|
attr2_depr_dict_dt in simple2.deprecations or
|
||||||
|
attr2_depr_dict_dt2 in simple2.deprecations
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue