summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/gcp_spanner_database
diff options
context:
space:
mode:
authorThe Magician <magic-modules@google.com>2019-03-15 20:43:00 +0100
committeransibot <ansibot@users.noreply.github.com>2019-03-15 20:43:00 +0100
commit204ae884911787acb1eb8bc18e0cb41f9150da9d (patch)
tree2be85b61ce19b676ca2ab428d559af7bbcc58c0e /test/integration/targets/gcp_spanner_database
parentConvert k8s test to role and fix virtulenv usage. (#53883) (diff)
downloadansible-204ae884911787acb1eb8bc18e0cb41f9150da9d.tar.xz
ansible-204ae884911787acb1eb8bc18e0cb41f9150da9d.zip
Bug fixes for GCP modules (#53882)
Diffstat (limited to 'test/integration/targets/gcp_spanner_database')
-rw-r--r--test/integration/targets/gcp_spanner_database/tasks/main.yml100
1 files changed, 50 insertions, 50 deletions
diff --git a/test/integration/targets/gcp_spanner_database/tasks/main.yml b/test/integration/targets/gcp_spanner_database/tasks/main.yml
index cc4b251db9..c059ad2e38 100644
--- a/test/integration/targets/gcp_spanner_database/tasks/main.yml
+++ b/test/integration/targets/gcp_spanner_database/tasks/main.yml
@@ -15,34 +15,34 @@
# Pre-test setup
- name: create a instance
gcp_spanner_instance:
- name: "instance-database"
- display_name: My Spanner Instance
- node_count: 2
- labels:
- cost_center: ti-1700004
- config: regional-us-central1
- project: "{{ gcp_project }}"
- auth_kind: "{{ gcp_cred_kind }}"
- service_account_file: "{{ gcp_cred_file }}"
- state: present
+ name: instance-database
+ display_name: My Spanner Instance
+ node_count: 2
+ labels:
+ cost_center: ti-1700004
+ config: regional-us-central1
+ project: "{{ gcp_project }}"
+ auth_kind: "{{ gcp_cred_kind }}"
+ service_account_file: "{{ gcp_cred_file }}"
+ state: present
register: instance
- name: delete a database
gcp_spanner_database:
- name: webstore
- instance: "{{ instance }}"
- project: "{{ gcp_project }}"
- auth_kind: "{{ gcp_cred_kind }}"
- service_account_file: "{{ gcp_cred_file }}"
- state: absent
+ name: webstore
+ instance: "{{ instance }}"
+ project: "{{ gcp_project }}"
+ auth_kind: "{{ gcp_cred_kind }}"
+ service_account_file: "{{ gcp_cred_file }}"
+ state: absent
#----------------------------------------------------------
- name: create a database
gcp_spanner_database:
- name: webstore
- instance: "{{ instance }}"
- project: "{{ gcp_project }}"
- auth_kind: "{{ gcp_cred_kind }}"
- service_account_file: "{{ gcp_cred_file }}"
- state: present
+ name: webstore
+ instance: "{{ instance }}"
+ project: "{{ gcp_project }}"
+ auth_kind: "{{ gcp_cred_kind }}"
+ service_account_file: "{{ gcp_cred_file }}"
+ state: present
register: result
- name: assert changed is true
assert:
@@ -64,12 +64,12 @@
# ----------------------------------------------------------------------------
- name: create a database that already exists
gcp_spanner_database:
- name: webstore
- instance: "{{ instance }}"
- project: "{{ gcp_project }}"
- auth_kind: "{{ gcp_cred_kind }}"
- service_account_file: "{{ gcp_cred_file }}"
- state: present
+ name: webstore
+ instance: "{{ instance }}"
+ project: "{{ gcp_project }}"
+ auth_kind: "{{ gcp_cred_kind }}"
+ service_account_file: "{{ gcp_cred_file }}"
+ state: present
register: result
- name: assert changed is false
assert:
@@ -78,12 +78,12 @@
#----------------------------------------------------------
- name: delete a database
gcp_spanner_database:
- name: webstore
- instance: "{{ instance }}"
- project: "{{ gcp_project }}"
- auth_kind: "{{ gcp_cred_kind }}"
- service_account_file: "{{ gcp_cred_file }}"
- state: absent
+ name: webstore
+ instance: "{{ instance }}"
+ project: "{{ gcp_project }}"
+ auth_kind: "{{ gcp_cred_kind }}"
+ service_account_file: "{{ gcp_cred_file }}"
+ state: absent
register: result
- name: assert changed is true
assert:
@@ -105,12 +105,12 @@
# ----------------------------------------------------------------------------
- name: delete a database that does not exist
gcp_spanner_database:
- name: webstore
- instance: "{{ instance }}"
- project: "{{ gcp_project }}"
- auth_kind: "{{ gcp_cred_kind }}"
- service_account_file: "{{ gcp_cred_file }}"
- state: absent
+ name: webstore
+ instance: "{{ instance }}"
+ project: "{{ gcp_project }}"
+ auth_kind: "{{ gcp_cred_kind }}"
+ service_account_file: "{{ gcp_cred_file }}"
+ state: absent
register: result
- name: assert changed is false
assert:
@@ -121,15 +121,15 @@
# If errors happen, don't crash the playbook!
- name: delete a instance
gcp_spanner_instance:
- name: "instance-database"
- display_name: My Spanner Instance
- node_count: 2
- labels:
- cost_center: ti-1700004
- config: regional-us-central1
- project: "{{ gcp_project }}"
- auth_kind: "{{ gcp_cred_kind }}"
- service_account_file: "{{ gcp_cred_file }}"
- state: absent
+ name: instance-database
+ display_name: My Spanner Instance
+ node_count: 2
+ labels:
+ cost_center: ti-1700004
+ config: regional-us-central1
+ project: "{{ gcp_project }}"
+ auth_kind: "{{ gcp_cred_kind }}"
+ service_account_file: "{{ gcp_cred_file }}"
+ state: absent
register: instance
ignore_errors: true