diff options
author | Marek Nogacki <no.marek@gmail.com> | 2017-10-18 15:21:55 +0200 |
---|---|---|
committer | Sloane Hertel <shertel@redhat.com> | 2017-10-18 15:21:55 +0200 |
commit | b9223cdc89e477b9cee66774ee770ea211ae6e6c (patch) | |
tree | ed9ee32bdabab1bb76679827bbaf8d793d2dc799 /test/integration | |
parent | [cloud] Check instance public-IP property before transforming to dict (#31849) (diff) | |
download | ansible-b9223cdc89e477b9cee66774ee770ea211ae6e6c.tar.xz ansible-b9223cdc89e477b9cee66774ee770ea211ae6e6c.zip |
ec2_group: do not fail on description mismatch (#31704) (#31734)
* ec2_group: do not fail on description mismatch (#31704)
* ec2_group: do not fail on description mismatch (#31704) - fix test case
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/targets/ec2_group/tasks/main.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/integration/targets/ec2_group/tasks/main.yml b/test/integration/targets/ec2_group/tasks/main.yml index 4522daa788..231c35b1d1 100644 --- a/test/integration/targets/ec2_group/tasks/main.yml +++ b/test/integration/targets/ec2_group/tasks/main.yml @@ -192,7 +192,7 @@ - 'result.group_id.startswith("sg-")' # ============================================================ - - name: test state=present different description raises error + - name: test state=present different description (expected changed=false) ec2_group: name: '{{ec2_group_name}}' description: '{{ec2_group_description}}CHANGED' @@ -204,11 +204,11 @@ ignore_errors: true register: result - - name: assert matching group with non-matching description raises error + - name: assert state=present (expected changed=false) assert: that: - - 'result.failed' - - '"Group description does not match existing group. ec2_group does not support this case." in result.msg' + - 'not result.changed' + - 'result.group_id.startswith("sg-")' # ============================================================ - name: test state=present (expected changed=false) |