Skip to content

Commit

Permalink
Consistent use if wait=true
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <[email protected]>
  • Loading branch information
alinabuzachis committed Jan 26, 2023
1 parent a491f20 commit 549a86d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/integration/targets/s3/tasks/tagging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
amazon.cloud.s3_bucket:
tags: '{{ first_tags }}'
purge_tags: true
wait: true
register: _result
- name: assert that update succeeded
assert:
Expand Down Expand Up @@ -90,8 +91,6 @@
- _result is not changed
- _result.result.properties.tags == first_tags

###

- name: test updating tags with purge on amazon.cloud.s3_bucket (check mode)
amazon.cloud.s3_bucket:
tags: '{{ second_tags }}'
Expand All @@ -107,6 +106,7 @@
amazon.cloud.s3_bucket:
tags: '{{ second_tags }}'
purge_tags: true
wait: true
register: _result
- name: assert that update succeeded
assert:
Expand Down Expand Up @@ -136,12 +136,11 @@
- _result is not changed
- _result.result.properties.tags == second_tags

#

- name: test updating tags without purge on amazon.cloud.s3_bucket (check mode)
amazon.cloud.s3_bucket:
tags: '{{ third_tags }}'
purge_tags: false
wait: true
register: _result
check_mode: yes
- name: assert that update succeeded
Expand Down Expand Up @@ -195,7 +194,6 @@
- _result is not changed
- _result.result.properties.tags == final_tags


- name: test no tags param amazon.cloud.s3_bucket
amazon.cloud.s3_bucket: {}
register: _result
Expand All @@ -205,8 +203,6 @@
- _result is not changed
- _result.result.properties.tags == final_tags

###

- name: test removing tags from amazon.cloud.s3_bucket (check mode)
amazon.cloud.s3_bucket:
tags: {}
Expand All @@ -222,6 +218,7 @@
amazon.cloud.s3_bucket:
tags: {}
purge_tags: true
wait: true
register: _result
- name: assert that update succeeded
assert:
Expand Down

0 comments on commit 549a86d

Please sign in to comment.