mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Address recent changes to tests to fix jinja tests as filters (#33679)
This commit is contained in:
parent
d850992526
commit
28373e1fe0
3 changed files with 18 additions and 18 deletions
|
@ -11,7 +11,7 @@
|
|||
- name: assert failure
|
||||
assert:
|
||||
that:
|
||||
- 'result | failed'
|
||||
- 'result is failed'
|
||||
- 'result.msg.startswith("missing required arguments")'
|
||||
|
||||
# ============================================================
|
||||
|
@ -28,7 +28,7 @@
|
|||
- name: assert connection failure
|
||||
assert:
|
||||
that:
|
||||
- 'result | failed'
|
||||
- 'result is failed'
|
||||
- 'result.msg.startswith("No handler was ready to authenticate")'
|
||||
|
||||
# ============================================================
|
||||
|
@ -71,7 +71,7 @@
|
|||
- name: assert the VPC was created successfully
|
||||
assert:
|
||||
that:
|
||||
- 'result | success'
|
||||
- 'result is successful'
|
||||
- 'result.changed'
|
||||
|
||||
- name: assert the output
|
||||
|
@ -126,7 +126,7 @@
|
|||
- name: assert a new VPC was created
|
||||
assert:
|
||||
that:
|
||||
- 'result | success'
|
||||
- 'result is successful'
|
||||
- 'result.changed'
|
||||
- 'result.vpc.instance_tenancy == "dedicated"'
|
||||
- result.vpc.id != vpc_1
|
||||
|
@ -146,7 +146,7 @@
|
|||
- name: assert failure
|
||||
assert:
|
||||
that:
|
||||
- 'result | failed'
|
||||
- 'result is failed'
|
||||
- '"If you would like to create the VPC anyway please pass True to the multi_ok param" in result.msg'
|
||||
|
||||
# ============================================================
|
||||
|
@ -243,7 +243,7 @@
|
|||
- name: assert a change was made
|
||||
assert:
|
||||
that:
|
||||
- 'result | success'
|
||||
- 'result is successful'
|
||||
# FIXME The module currently doesn't note changed for VPC attributes.
|
||||
# Once this is fixed a test should be added for check mode as well.
|
||||
# - 'result.changed'
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
- name: check mode assert that changed is true
|
||||
assert:
|
||||
that:
|
||||
- category | changed
|
||||
- subcategory | changed
|
||||
- category is changed
|
||||
- subcategory is changed
|
||||
|
||||
- name: check mode assert that audit_type is "no auditing"
|
||||
assert:
|
||||
|
@ -54,8 +54,8 @@
|
|||
- name: enable assert that changed is true
|
||||
assert:
|
||||
that:
|
||||
- category | changed
|
||||
- subcategory | changed
|
||||
- category is changed
|
||||
- subcategory is changed
|
||||
|
||||
- name: enable assert that audit_type is "success" for category
|
||||
assert:
|
||||
|
@ -90,8 +90,8 @@
|
|||
- name: idem assert that changed is false
|
||||
assert:
|
||||
that:
|
||||
- not category | changed
|
||||
- not subcategory | changed
|
||||
- category is not changed
|
||||
- subcategory is not changed
|
||||
|
||||
- name: idem assert that audit_type is "success" for category
|
||||
assert:
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
- name: check mode assert that changed is true
|
||||
assert:
|
||||
that:
|
||||
- category | changed
|
||||
- subcategory | changed
|
||||
- category is changed
|
||||
- subcategory is changed
|
||||
|
||||
- name: check mode assert that audit_type is still "success" (old value) for category
|
||||
assert:
|
||||
|
@ -54,8 +54,8 @@
|
|||
- name: assert that changed is true
|
||||
assert:
|
||||
that:
|
||||
- category | changed
|
||||
- subcategory | changed
|
||||
- category is changed
|
||||
- subcategory is changed
|
||||
|
||||
- name: assert that audit_type is "no auditing"
|
||||
assert:
|
||||
|
@ -84,8 +84,8 @@
|
|||
- name: idem assert that changed is false
|
||||
assert:
|
||||
that:
|
||||
- not category | changed
|
||||
- not subcategory | changed
|
||||
- category is not changed
|
||||
- subcategory is not changed
|
||||
|
||||
- name: assert that audit_type is "no auditing"
|
||||
assert:
|
||||
|
|
Loading…
Reference in a new issue