Skip to content

Commit

Permalink
Update tests/integration/targets/ec2_transit_gateway/tasks/main.yml
Browse files Browse the repository at this point in the history
Co-authored-by: Alina Buzachis <abuzachis@redhat.com>
  • Loading branch information
cschimid and alinabuzachis authored Apr 5, 2024
1 parent 94f59e4 commit 3c3a8f7
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tests/integration/targets/ec2_transit_gateway/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,31 @@
that:
- create_result.changed == True

- name: generate unique value for testing
set_fact:
tgw_description_multicast: "{{ resource_prefix }}-tgw-multicast"

- name: test create transit gateway with multicast enabled
ec2_transit_gateway:
description: "{{ tgw_description }}"
description: "{{ tgw_description_multicast }}"
multicast_support: true
register: create_result

- name: assert changed is True
assert:
that:
- create_result.changed == True

- name: test success with filter
ec2_transit_gateway_info:
filters:
options.multicast-support: enable
register: result

- name: assert success with multicast-support filter
assert:
that:
- 'result.transit_gateways != []'

- name: test update transit gateway with tags by description
ec2_transit_gateway:
Expand Down

0 comments on commit 3c3a8f7

Please sign in to comment.