Skip to content

Commit

Permalink
Fix bugs in aws acm check mode integration test (ansible-collections#485
Browse files Browse the repository at this point in the history
)

* fix test bugs
* Update tests/integration/targets/aws_acm/tasks/full_acm_test.yml
Co-authored-by: Mark Chappell <mchappel@redhat.com>
  • Loading branch information
mdavis-xyz authored Mar 21, 2021
1 parent 0d0a297 commit d3b6af7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/integration/targets/aws_acm/tasks/full_acm_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,11 @@
- name: list cert which shouldn't exist
aws_acm_info:
tags:
Name: '{{ item[0].name }}'
Name: '{{ item.name }}'
register: list_tag
check_mode: '{{ item[1] }}'
with_nested:
- '{{ local_certs }}'
- [ False, True ] # read-only task, should work the same with check mode or not
with_items: '{{ local_certs }}'
- name: check listing of missing cert returns no result
with_items: "{{ list_tag.results }}"
with_items: '{{ list_tag.results }}'
assert:
that:
- (item.certificates | length) == 0
Expand Down

0 comments on commit d3b6af7

Please sign in to comment.