mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-23 13:20:30 -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 instance
|
||||
gcp_sql_instance:
|
||||
google.cloud.gcp_sql_instance:
|
||||
name: "{{resource_name}}-1"
|
||||
settings:
|
||||
ip_configuration:
|
||||
|
@ -29,7 +29,7 @@
|
|||
state: present
|
||||
register: instance
|
||||
- name: delete a user
|
||||
gcp_sql_user:
|
||||
google.cloud.gcp_sql_user:
|
||||
name: test-user
|
||||
host: 10.1.2.3
|
||||
password: secret-password
|
||||
|
@ -40,7 +40,7 @@
|
|||
state: absent
|
||||
#----------------------------------------------------------
|
||||
- name: create a user
|
||||
gcp_sql_user:
|
||||
google.cloud.gcp_sql_user:
|
||||
name: test-user
|
||||
host: 10.1.2.3
|
||||
password: secret-password
|
||||
|
@ -69,7 +69,7 @@
|
|||
- "'test-user' in \"{{ results['resources'] | map(attribute='name') | list }}\""
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a user that already exists
|
||||
gcp_sql_user:
|
||||
google.cloud.gcp_sql_user:
|
||||
name: test-user
|
||||
host: 10.1.2.3
|
||||
password: secret-password
|
||||
|
@ -85,7 +85,7 @@
|
|||
- result.changed == false
|
||||
#----------------------------------------------------------
|
||||
- name: delete a user
|
||||
gcp_sql_user:
|
||||
google.cloud.gcp_sql_user:
|
||||
name: test-user
|
||||
host: 10.1.2.3
|
||||
password: secret-password
|
||||
|
@ -114,7 +114,7 @@
|
|||
- "'test-user' not in \"{{ results['resources'] | map(attribute='name') | list }}\""
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a user that does not exist
|
||||
gcp_sql_user:
|
||||
google.cloud.gcp_sql_user:
|
||||
name: test-user
|
||||
host: 10.1.2.3
|
||||
password: secret-password
|
||||
|
@ -132,7 +132,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}}-1"
|
||||
settings:
|
||||
ip_configuration:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue