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
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
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'