mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-28 07:31:29 -07:00
Spanner Fixes (#301)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
a29f611cf6
commit
72e4cc7214
7 changed files with 47 additions and 14 deletions
|
@ -60,7 +60,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- "'webstore' in \"{{ results['resources'] | map(attribute='name') | list }}\""
|
||||
- results['resources'] | map(attribute='name') | select("match", ".*webstore.*") | list | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a database that already exists
|
||||
gcp_spanner_database:
|
||||
|
@ -101,7 +101,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- "'webstore' not in \"{{ results['resources'] | map(attribute='name') | list }}\""
|
||||
- results['resources'] | map(attribute='name') | select("match", ".*webstore.*") | list | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a database that does not exist
|
||||
gcp_spanner_database:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue