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-instancetemplate
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
@ -22,7 +22,7 @@
state: present
register: network
- name: create a address
gcp_compute_address:
google.cloud.gcp_compute_address:
name: address-instancetemplate
region: us-west1
project: "{{ gcp_project }}"
@ -31,7 +31,7 @@
state: present
register: address
- name: create a instance template
gcp_compute_instance_template:
google.cloud.gcp_compute_instance_template:
name: "{{ resource_name }}"
properties:
disks:
@ -52,7 +52,7 @@
state: present
register: instancetemplate
- name: delete a instance group manager
gcp_compute_instance_group_manager:
google.cloud.gcp_compute_instance_group_manager:
name: "{{ resource_name }}"
base_instance_name: test1-child
instance_template: "{{ instancetemplate }}"
@ -64,7 +64,7 @@
state: absent
#----------------------------------------------------------
- name: create a instance group manager
gcp_compute_instance_group_manager:
google.cloud.gcp_compute_instance_group_manager:
name: "{{ resource_name }}"
base_instance_name: test1-child
instance_template: "{{ instancetemplate }}"
@ -96,7 +96,7 @@
- results['resources'] | length == 1
# ----------------------------------------------------------------------------
- name: create a instance group manager that already exists
gcp_compute_instance_group_manager:
google.cloud.gcp_compute_instance_group_manager:
name: "{{ resource_name }}"
base_instance_name: test1-child
instance_template: "{{ instancetemplate }}"
@ -113,7 +113,7 @@
- result.changed == false
#----------------------------------------------------------
- name: delete a instance group manager
gcp_compute_instance_group_manager:
google.cloud.gcp_compute_instance_group_manager:
name: "{{ resource_name }}"
base_instance_name: test1-child
instance_template: "{{ instancetemplate }}"
@ -145,7 +145,7 @@
- results['resources'] | length == 0
# ----------------------------------------------------------------------------
- name: delete a instance group manager that does not exist
gcp_compute_instance_group_manager:
google.cloud.gcp_compute_instance_group_manager:
name: "{{ resource_name }}"
base_instance_name: test1-child
instance_template: "{{ instancetemplate }}"
@ -164,7 +164,7 @@
# Post-test teardown
# If errors happen, don't crash the playbook!
- name: delete a instance template
gcp_compute_instance_template:
google.cloud.gcp_compute_instance_template:
name: "{{ resource_name }}"
properties:
disks:
@ -186,7 +186,7 @@
register: instancetemplate
ignore_errors: true
- name: delete a address
gcp_compute_address:
google.cloud.gcp_compute_address:
name: address-instancetemplate
region: us-west1
project: "{{ gcp_project }}"
@ -196,7 +196,7 @@
register: address
ignore_errors: true
- name: delete a network
gcp_compute_network:
google.cloud.gcp_compute_network:
name: network-instancetemplate
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"