Ansible integration test fixes - pt 2 (#147)

<!-- This change is generated by MagicModules. -->
/cc @rambleraptor
This commit is contained in:
The Magician 2018-12-14 12:49:08 -08:00 committed by Alex Stephen
commit 3496923252
12 changed files with 112 additions and 100 deletions

View file

@ -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 }}"