Adding namespace on integration tests + examples

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
Alex Stephen 2019-09-30 22:08:25 +00:00 committed by Modular Magician
commit 516fada880
130 changed files with 570 additions and 570 deletions

View file

@ -14,7 +14,7 @@
# ----------------------------------------------------------------------------
# Pre-test setup
- name: create a network
gcp_compute_network:
google.cloud.gcp_compute_network:
name: network-vpn-tunnel
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
@ -22,7 +22,7 @@
state: present
register: network
- name: create a router
gcp_compute_router:
google.cloud.gcp_compute_router:
name: router-vpn-tunnel
network: "{{ network }}"
bgp:
@ -40,7 +40,7 @@
state: present
register: router
- name: create a target vpn gateway
gcp_compute_target_vpn_gateway:
google.cloud.gcp_compute_target_vpn_gateway:
name: gateway-vpn-tunnel
region: us-west1
network: "{{ network }}"
@ -50,7 +50,7 @@
state: present
register: gateway
- name: delete a vpn tunnel
gcp_compute_vpn_tunnel:
google.cloud.gcp_compute_vpn_tunnel:
name: "{{ resource_name }}"
region: us-west1
target_vpn_gateway: "{{ gateway }}"
@ -62,7 +62,7 @@
state: absent
#----------------------------------------------------------
- name: create a vpn tunnel
gcp_compute_vpn_tunnel:
google.cloud.gcp_compute_vpn_tunnel:
name: "{{ resource_name }}"
region: us-west1
target_vpn_gateway: "{{ gateway }}"
@ -94,7 +94,7 @@
- results['resources'] | length == 1
# ----------------------------------------------------------------------------
- name: create a vpn tunnel that already exists
gcp_compute_vpn_tunnel:
google.cloud.gcp_compute_vpn_tunnel:
name: "{{ resource_name }}"
region: us-west1
target_vpn_gateway: "{{ gateway }}"
@ -111,7 +111,7 @@
- result.changed == false
#----------------------------------------------------------
- name: delete a vpn tunnel
gcp_compute_vpn_tunnel:
google.cloud.gcp_compute_vpn_tunnel:
name: "{{ resource_name }}"
region: us-west1
target_vpn_gateway: "{{ gateway }}"
@ -143,7 +143,7 @@
- results['resources'] | length == 0
# ----------------------------------------------------------------------------
- name: delete a vpn tunnel that does not exist
gcp_compute_vpn_tunnel:
google.cloud.gcp_compute_vpn_tunnel:
name: "{{ resource_name }}"
region: us-west1
target_vpn_gateway: "{{ gateway }}"
@ -162,7 +162,7 @@
# Post-test teardown
# If errors happen, don't crash the playbook!
- name: delete a target vpn gateway
gcp_compute_target_vpn_gateway:
google.cloud.gcp_compute_target_vpn_gateway:
name: gateway-vpn-tunnel
region: us-west1
network: "{{ network }}"
@ -173,7 +173,7 @@
register: gateway
ignore_errors: true
- name: delete a router
gcp_compute_router:
google.cloud.gcp_compute_router:
name: router-vpn-tunnel
network: "{{ network }}"
bgp:
@ -192,7 +192,7 @@
register: router
ignore_errors: true
- name: delete a network
gcp_compute_network:
google.cloud.gcp_compute_network:
name: network-vpn-tunnel
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"