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 cluster
|
||||
gcp_container_cluster:
|
||||
google.cloud.gcp_container_cluster:
|
||||
name: cluster-nodepool
|
||||
initial_node_count: 4
|
||||
location: us-central1-a
|
||||
|
@ -24,7 +24,7 @@
|
|||
state: present
|
||||
register: cluster
|
||||
- name: delete a node pool
|
||||
gcp_container_node_pool:
|
||||
google.cloud.gcp_container_node_pool:
|
||||
name: my-pool
|
||||
initial_node_count: 4
|
||||
cluster: "{{ cluster }}"
|
||||
|
@ -35,7 +35,7 @@
|
|||
state: absent
|
||||
#----------------------------------------------------------
|
||||
- name: create a node pool
|
||||
gcp_container_node_pool:
|
||||
google.cloud.gcp_container_node_pool:
|
||||
name: my-pool
|
||||
initial_node_count: 4
|
||||
cluster: "{{ cluster }}"
|
||||
|
@ -65,7 +65,7 @@
|
|||
- "'my-pool' in \"{{ results['resources'] | map(attribute='name') | list }}\""
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a node pool that already exists
|
||||
gcp_container_node_pool:
|
||||
google.cloud.gcp_container_node_pool:
|
||||
name: my-pool
|
||||
initial_node_count: 4
|
||||
cluster: "{{ cluster }}"
|
||||
|
@ -81,7 +81,7 @@
|
|||
- result.changed == false
|
||||
#----------------------------------------------------------
|
||||
- name: delete a node pool
|
||||
gcp_container_node_pool:
|
||||
google.cloud.gcp_container_node_pool:
|
||||
name: my-pool
|
||||
initial_node_count: 4
|
||||
cluster: "{{ cluster }}"
|
||||
|
@ -111,7 +111,7 @@
|
|||
- "'my-pool' not in \"{{ results['resources'] | map(attribute='name') | list }}\""
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a node pool that does not exist
|
||||
gcp_container_node_pool:
|
||||
google.cloud.gcp_container_node_pool:
|
||||
name: my-pool
|
||||
initial_node_count: 4
|
||||
cluster: "{{ cluster }}"
|
||||
|
@ -129,7 +129,7 @@
|
|||
# Post-test teardown
|
||||
# If errors happen, don't crash the playbook!
|
||||
- name: delete a cluster
|
||||
gcp_container_cluster:
|
||||
google.cloud.gcp_container_cluster:
|
||||
name: cluster-nodepool
|
||||
initial_node_count: 4
|
||||
location: us-central1-a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue