Skip to content

Commit

Permalink
Update FQCN integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <[email protected]>
  • Loading branch information
alinabuzachis committed Oct 18, 2024
1 parent 8f6f1ba commit 0453635
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 109 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
- name: Describe all attachments on our VPC
community.aws.ec2_transit_gateway_vpc_attachment_info:
amazon.aws.ec2_transit_gateway_vpc_attachment_info:
filters:
transit-gateway-id: '{{ tgw_id }}'
register: info
ignore_errors: true

- name: Start deletion of all attachments
community.aws.ec2_transit_gateway_vpc_attachment:
amazon.aws.ec2_transit_gateway_vpc_attachment:
state: absent
id: '{{ item.transit_gateway_attachment_id }}'
wait: false
loop: '{{ info.attachments }}'
ignore_errors: true

- name: Wait for deletion of all attachments
community.aws.ec2_transit_gateway_vpc_attachment:
amazon.aws.ec2_transit_gateway_vpc_attachment:
state: absent
id: '{{ item.transit_gateway_attachment_id }}'
wait: true
Expand Down Expand Up @@ -54,13 +54,13 @@
ignore_errors: true

- name: Gather info about all transit gateways
community.aws.ec2_transit_gateway_info:
amazon.aws.ec2_transit_gateway_info:
transit_gateway_ids:
- '{{ tgw_id }}'
- '{{ tgw_id_2 }}'

- name: Delete Transit Gateways
community.aws.ec2_transit_gateway:
amazon.aws.ec2_transit_gateway:
state: absent
transit_gateway_id: '{{ item.tgw_id }}'
loop:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- block:
- name: (CHECK_MODE) Create an attachment - complex parameters
check_mode: true
community.aws.ec2_transit_gateway_vpc_attachment:
amazon.aws.ec2_transit_gateway_vpc_attachment:
name: '{{ attachment_name_complex }}'
transit_gateway: '{{ tgw_id }}'
subnets:
Expand Down Expand Up @@ -53,7 +53,7 @@
attachment: '{{ complex_attach.attachments[0] }}'

- name: Create an attachment - complex parameters
community.aws.ec2_transit_gateway_vpc_attachment:
amazon.aws.ec2_transit_gateway_vpc_attachment:
name: '{{ attachment_name_complex }}'
transit_gateway: '{{ tgw_id }}'
subnets:
Expand Down Expand Up @@ -112,7 +112,7 @@

- name: (CHECK_MODE) Create an attachment - complex parameters -- IDEMPOTENCY
check_mode: true
community.aws.ec2_transit_gateway_vpc_attachment:
amazon.aws.ec2_transit_gateway_vpc_attachment:
name: '{{ attachment_name_complex }}'
transit_gateway: '{{ tgw_id }}'
subnets:
Expand Down Expand Up @@ -165,7 +165,7 @@
attachment: '{{ complex_attach.attachments[0] }}'

- name: Create an attachment - complex parameters -- IDEMPOTENCY
community.aws.ec2_transit_gateway_vpc_attachment:
amazon.aws.ec2_transit_gateway_vpc_attachment:
name: '{{ attachment_name_complex }}'
transit_gateway: '{{ tgw_id }}'
subnets:
Expand Down Expand Up @@ -222,7 +222,7 @@

- name: (CHECK_MODE) Update an attachment - complex parameters
check_mode: true
community.aws.ec2_transit_gateway_vpc_attachment:
amazon.aws.ec2_transit_gateway_vpc_attachment:
name: '{{ attachment_name_complex }}'
transit_gateway: '{{ tgw_id }}'
subnets:
Expand Down Expand Up @@ -279,7 +279,7 @@
attachment: '{{ complex_attach.attachments[0] }}'

- name: Update an attachment - complex parameters
community.aws.ec2_transit_gateway_vpc_attachment:
amazon.aws.ec2_transit_gateway_vpc_attachment:
name: '{{ attachment_name_complex }}'
transit_gateway: '{{ tgw_id }}'
subnets:
Expand Down Expand Up @@ -337,7 +337,7 @@

- name: (CHECK_MODE) Update an attachment - complex parameters -- IDEMPOTENCY
check_mode: true
community.aws.ec2_transit_gateway_vpc_attachment:
amazon.aws.ec2_transit_gateway_vpc_attachment:
name: '{{ attachment_name_complex }}'
transit_gateway: '{{ tgw_id }}'
subnets:
Expand Down Expand Up @@ -394,7 +394,7 @@
attachment: '{{ complex_attach.attachments[0] }}'

- name: Update an attachment - complex parameters -- IDEMPOTENCY
community.aws.ec2_transit_gateway_vpc_attachment:
amazon.aws.ec2_transit_gateway_vpc_attachment:
name: '{{ attachment_name_complex }}'
transit_gateway: '{{ tgw_id }}'
subnets:
Expand Down
Loading

0 comments on commit 0453635

Please sign in to comment.