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 instance
gcp_sql_instance:
google.cloud.gcp_sql_instance:
name: "{{resource_name}}-3"
settings:
ip_configuration:
@ -29,7 +29,7 @@
state: present
register: instance
- name: delete a database
gcp_sql_database:
google.cloud.gcp_sql_database:
name: "{{ resource_name }}"
charset: utf8
instance: "{{ instance.name }}"
@ -39,7 +39,7 @@
state: absent
#----------------------------------------------------------
- name: create a database
gcp_sql_database:
google.cloud.gcp_sql_database:
name: "{{ resource_name }}"
charset: utf8
instance: "{{ instance.name }}"
@ -67,7 +67,7 @@
- "\"{{resource_name}}\" in \"{{ results['resources'] | map(attribute='name') | list }}\""
# ----------------------------------------------------------------------------
- name: create a database that already exists
gcp_sql_database:
google.cloud.gcp_sql_database:
name: "{{ resource_name }}"
charset: utf8
instance: "{{ instance.name }}"
@ -82,7 +82,7 @@
- result.changed == false
#----------------------------------------------------------
- name: delete a database
gcp_sql_database:
google.cloud.gcp_sql_database:
name: "{{ resource_name }}"
charset: utf8
instance: "{{ instance.name }}"
@ -110,7 +110,7 @@
- "\"{{resource_name}}\" not in \"{{ results['resources'] | map(attribute='name') | list }}\""
# ----------------------------------------------------------------------------
- name: delete a database that does not exist
gcp_sql_database:
google.cloud.gcp_sql_database:
name: "{{ resource_name }}"
charset: utf8
instance: "{{ instance.name }}"
@ -127,7 +127,7 @@
# Post-test teardown
# If errors happen, don't crash the playbook!
- name: delete a instance
gcp_sql_instance:
google.cloud.gcp_sql_instance:
name: "{{resource_name}}-3"
settings:
ip_configuration: