Address recent changes to tests to fix jinja tests as filters (#33679)

This commit is contained in:
Matt Martz 2017-12-07 11:30:09 -05:00 committed by GitHub
parent d850992526
commit 28373e1fe0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 18 deletions

View file

@ -11,7 +11,7 @@
- name: assert failure - name: assert failure
assert: assert:
that: that:
- 'result | failed' - 'result is failed'
- 'result.msg.startswith("missing required arguments")' - 'result.msg.startswith("missing required arguments")'
# ============================================================ # ============================================================
@ -28,7 +28,7 @@
- name: assert connection failure - name: assert connection failure
assert: assert:
that: that:
- 'result | failed' - 'result is failed'
- 'result.msg.startswith("No handler was ready to authenticate")' - 'result.msg.startswith("No handler was ready to authenticate")'
# ============================================================ # ============================================================
@ -71,7 +71,7 @@
- name: assert the VPC was created successfully - name: assert the VPC was created successfully
assert: assert:
that: that:
- 'result | success' - 'result is successful'
- 'result.changed' - 'result.changed'
- name: assert the output - name: assert the output
@ -126,7 +126,7 @@
- name: assert a new VPC was created - name: assert a new VPC was created
assert: assert:
that: that:
- 'result | success' - 'result is successful'
- 'result.changed' - 'result.changed'
- 'result.vpc.instance_tenancy == "dedicated"' - 'result.vpc.instance_tenancy == "dedicated"'
- result.vpc.id != vpc_1 - result.vpc.id != vpc_1
@ -146,7 +146,7 @@
- name: assert failure - name: assert failure
assert: assert:
that: 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' - '"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 - name: assert a change was made
assert: assert:
that: that:
- 'result | success' - 'result is successful'
# FIXME The module currently doesn't note changed for VPC attributes. # 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. # Once this is fixed a test should be added for check mode as well.
# - 'result.changed' # - 'result.changed'

View file

@ -18,8 +18,8 @@
- name: check mode assert that changed is true - name: check mode assert that changed is true
assert: assert:
that: that:
- category | changed - category is changed
- subcategory | changed - subcategory is changed
- name: check mode assert that audit_type is "no auditing" - name: check mode assert that audit_type is "no auditing"
assert: assert:
@ -54,8 +54,8 @@
- name: enable assert that changed is true - name: enable assert that changed is true
assert: assert:
that: that:
- category | changed - category is changed
- subcategory | changed - subcategory is changed
- name: enable assert that audit_type is "success" for category - name: enable assert that audit_type is "success" for category
assert: assert:
@ -90,8 +90,8 @@
- name: idem assert that changed is false - name: idem assert that changed is false
assert: assert:
that: that:
- not category | changed - category is not changed
- not subcategory | changed - subcategory is not changed
- name: idem assert that audit_type is "success" for category - name: idem assert that audit_type is "success" for category
assert: assert:

View file

@ -18,8 +18,8 @@
- name: check mode assert that changed is true - name: check mode assert that changed is true
assert: assert:
that: that:
- category | changed - category is changed
- subcategory | changed - subcategory is changed
- name: check mode assert that audit_type is still "success" (old value) for category - name: check mode assert that audit_type is still "success" (old value) for category
assert: assert:
@ -54,8 +54,8 @@
- name: assert that changed is true - name: assert that changed is true
assert: assert:
that: that:
- category | changed - category is changed
- subcategory | changed - subcategory is changed
- name: assert that audit_type is "no auditing" - name: assert that audit_type is "no auditing"
assert: assert:
@ -84,8 +84,8 @@
- name: idem assert that changed is false - name: idem assert that changed is false
assert: assert:
that: that:
- not category | changed - category is not changed
- not subcategory | changed - subcategory is not changed
- name: assert that audit_type is "no auditing" - name: assert that audit_type is "no auditing"
assert: assert: