Skip to content

Commit

Permalink
Add minimal integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed Nov 13, 2023
1 parent 5a7a8b2 commit d13feb7
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
test: '{{ resource_prefix }}_ec2_group_info_module'
register: group_info_test_setup

- name: Ensure tags were added without the additional CreateTags/RemoveTags calls
assert:
that:
- group_info_test_setup.tags | length == 1
- "'test' in group_info_test_setup.tags"
- group_info_test_setup.tags.test == "{{ resource_prefix }}_ec2_group_info_module"
- "'ec2:CreateTags' not in group_info_test_setup.resource_actions"
- "'ec2:DeleteTags' not in group_info_test_setup.resource_actions"

- name: Create another group for testing group info retrieval below
ec2_security_group:
name: '{{ ec2_group_name }}-info-2'
Expand Down

0 comments on commit d13feb7

Please sign in to comment.