mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-23 05:10:29 -07:00
Adding namespace on integration tests + examples
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
6c7c5f4977
commit
516fada880
130 changed files with 570 additions and 570 deletions
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue