mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
* trying to delete a nonexistent bucket should not fail * Improve error handling for deleting s3 bucket * Allow successful deletion * Add test for deleting a nonexistent bucket rename integration test target from s3 to aws_s3
This commit is contained in:
committed by
Ryan Brown
parent
7521be73c1
commit
3f0c47196e
@@ -215,3 +215,16 @@
|
||||
that:
|
||||
- result.changed == True
|
||||
# ============================================================
|
||||
- name: test delete a nonexistent bucket
|
||||
s3:
|
||||
bucket: "{{ bucket.stdout + '.bucket' }}"
|
||||
mode: delete
|
||||
security_token: "{{security_token}}"
|
||||
aws_access_key: "{{ ec2_access_key }}"
|
||||
aws_secret_key: "{{ ec2_secret_key }}"
|
||||
register: result
|
||||
- name: assert that changed is False
|
||||
assert:
|
||||
that:
|
||||
- result.changed == False
|
||||
# ============================================================
|
||||
Reference in New Issue
Block a user