From d13feb76dcb257b9e0c8cd321f2ebe42926d9e21 Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Mon, 13 Nov 2023 09:53:57 +0100 Subject: [PATCH] Add minimal integration test --- .../targets/ec2_security_group/tasks/group_info.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/integration/targets/ec2_security_group/tasks/group_info.yml b/tests/integration/targets/ec2_security_group/tasks/group_info.yml index 0a83203518a..fa94abe58ce 100644 --- a/tests/integration/targets/ec2_security_group/tasks/group_info.yml +++ b/tests/integration/targets/ec2_security_group/tasks/group_info.yml @@ -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'