mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-24 13:50:30 -07:00
Ansible integration test fixes - pt 2 (#147)
<!-- This change is generated by MagicModules. --> /cc @rambleraptor
This commit is contained in:
parent
f288ffc4be
commit
3496923252
12 changed files with 112 additions and 100 deletions
|
@ -49,8 +49,8 @@
|
|||
service_account_file: "{{ gcp_cred_file }}"
|
||||
state: present
|
||||
register: gateway
|
||||
- name: delete a vpn-tunnel
|
||||
gcp_compute_vpn-tunnel:
|
||||
- name: delete a vpn tunnel
|
||||
gcp_compute_vpn_tunnel:
|
||||
name: "{{ resource_name }}"
|
||||
region: us-west1
|
||||
target_vpn_gateway: "{{ gateway }}"
|
||||
|
@ -61,8 +61,8 @@
|
|||
service_account_file: "{{ gcp_cred_file }}"
|
||||
state: absent
|
||||
#----------------------------------------------------------
|
||||
- name: create a vpn-tunnel
|
||||
gcp_compute_vpn-tunnel:
|
||||
- name: create a vpn tunnel
|
||||
gcp_compute_vpn_tunnel:
|
||||
name: "{{ resource_name }}"
|
||||
region: us-west1
|
||||
target_vpn_gateway: "{{ gateway }}"
|
||||
|
@ -94,8 +94,8 @@
|
|||
that:
|
||||
- results['resources'] | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a vpn-tunnel that already exists
|
||||
gcp_compute_vpn-tunnel:
|
||||
- name: create a vpn tunnel that already exists
|
||||
gcp_compute_vpn_tunnel:
|
||||
name: "{{ resource_name }}"
|
||||
region: us-west1
|
||||
target_vpn_gateway: "{{ gateway }}"
|
||||
|
@ -112,8 +112,8 @@
|
|||
- result.changed == false
|
||||
- "result.kind == 'compute#vpnTunnel'"
|
||||
#----------------------------------------------------------
|
||||
- name: delete a vpn-tunnel
|
||||
gcp_compute_vpn-tunnel:
|
||||
- name: delete a vpn tunnel
|
||||
gcp_compute_vpn_tunnel:
|
||||
name: "{{ resource_name }}"
|
||||
region: us-west1
|
||||
target_vpn_gateway: "{{ gateway }}"
|
||||
|
@ -145,8 +145,8 @@
|
|||
that:
|
||||
- results['resources'] | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a vpn-tunnel that does not exist
|
||||
gcp_compute_vpn-tunnel:
|
||||
- name: delete a vpn tunnel that does not exist
|
||||
gcp_compute_vpn_tunnel:
|
||||
name: "{{ resource_name }}"
|
||||
region: us-west1
|
||||
target_vpn_gateway: "{{ gateway }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue