diff options
author | Will Thames <will@thames.id.au> | 2019-02-28 19:54:18 +0100 |
---|---|---|
committer | Sloane Hertel <shertel@redhat.com> | 2019-02-28 19:54:18 +0100 |
commit | 91eee48f1bd1204ddb229673e1b1b86c1910947b (patch) | |
tree | ffd0ff7e1e2ef3727697c0bb63257357137e5d11 /test/integration/targets/aws_kms | |
parent | Revert back to using section (#53069) (diff) | |
download | ansible-91eee48f1bd1204ddb229673e1b1b86c1910947b.tar.xz ansible-91eee48f1bd1204ddb229673e1b1b86c1910947b.zip |
aws_kms tags fix (#53088)
* Fix TagName and TagValue in aws_kms
Fixes #53061
* Improve test suite to check for tags
Also fixed some obvious failures, need to run the test suite from time
to time!
Diffstat (limited to 'test/integration/targets/aws_kms')
-rw-r--r-- | test/integration/targets/aws_kms/tasks/main.yml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/integration/targets/aws_kms/tasks/main.yml b/test/integration/targets/aws_kms/tasks/main.yml index 40d1129d10..b8b73676a6 100644 --- a/test/integration/targets/aws_kms/tasks/main.yml +++ b/test/integration/targets/aws_kms/tasks/main.yml @@ -17,6 +17,8 @@ aws_secret_key: "{{ aws_secret_key }}" security_token: "{{ security_token }}" alias: "{{ resource_prefix }}-kms" + tags: + Hello: World state: present enabled: yes register: create_kms @@ -25,6 +27,7 @@ assert: that: - create_kms.key_state == "Enabled" + - create_kms.tags['Hello'] == 'World' - name: find facts about the key aws_kms_facts: @@ -92,8 +95,6 @@ alias: "{{ resource_prefix }}-kms" register: new_key - - fail: - - name: set aws environment base fact set_fact: aws_environment_base: @@ -146,7 +147,7 @@ - grant_one.grants|length == 1 - name: Add a second grant - kms: + aws_kms: region: "{{ aws_region }}" aws_access_key: "{{ aws_access_key }}" aws_secret_key: "{{ aws_secret_key }}" |