mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-09 20:30:27 -07:00
Fixing integration tests on SQL + DNS (#139)
<!-- This change is generated by MagicModules. --> /cc @rambleraptor
This commit is contained in:
parent
e63c0009e4
commit
02ec84ed06
3 changed files with 5 additions and 5 deletions
|
@ -68,7 +68,7 @@
|
||||||
- name: verify that command succeeded
|
- name: verify that command succeeded
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- results['items'] | length >= 2
|
- "'www.testzone-4.com.'in \"{{ results['items'] | map(attribute='name') | list }}\""
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
- name: create a resource record set that already exists
|
- name: create a resource record set that already exists
|
||||||
gcp_dns_resource_record_set:
|
gcp_dns_resource_record_set:
|
||||||
|
@ -121,7 +121,7 @@
|
||||||
- name: verify that command succeeded
|
- name: verify that command succeeded
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- results['items'] | length >= 2
|
- "'www.testzone-4.com.'not in \"{{ results['items'] | map(attribute='name') | list }}\""
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
- name: delete a resource record set that does not exist
|
- name: delete a resource record set that does not exist
|
||||||
gcp_dns_resource_record_set:
|
gcp_dns_resource_record_set:
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
- name: verify that command succeeded
|
- name: verify that command succeeded
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- results['items'] | length >= 1
|
- "\"{{resource_name}}\" in \"{{ results['items'] | map(attribute='name') | list }}\""
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
- name: create a database that already exists
|
- name: create a database that already exists
|
||||||
gcp_sql_database:
|
gcp_sql_database:
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
- name: verify that command succeeded
|
- name: verify that command succeeded
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- results['items'] | length == 0
|
- "\"{{resource_name}}\" not in \"{{ results['items'] | map(attribute='name') | list }}\""
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
- name: delete a database that does not exist
|
- name: delete a database that does not exist
|
||||||
gcp_sql_database:
|
gcp_sql_database:
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
- name: verify that command succeeded
|
- name: verify that command succeeded
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- results['items'] | length >= 1
|
- "'test-user' in \"{{ results['items'] | map(attribute='name') | list }}\""
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
- name: create a user that already exists
|
- name: create a user that already exists
|
||||||
gcp_sql_user:
|
gcp_sql_user:
|
||||||
|
|
Loading…
Add table
Reference in a new issue