mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-23 05:10:29 -07:00
Test Fixes (#299)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
697908c7fe
commit
5b92781ab0
45 changed files with 19 additions and 96 deletions
|
@ -49,7 +49,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['resources'] | map(attribute='name') | select("match", ".*my_example_dataset.*") | list | length == 1
|
||||
- results['resources'] | map(attribute='datasetReference') | map(attribute='datasetId') | select("match", ".*my_example_dataset.*") | list | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a dataset that already exists
|
||||
gcp_bigquery_dataset:
|
||||
|
@ -81,7 +81,6 @@
|
|||
assert:
|
||||
that:
|
||||
- result.changed == true
|
||||
- result.has_key('kind') == False
|
||||
- name: verify that dataset was deleted
|
||||
gcp_bigquery_dataset_facts:
|
||||
project: "{{ gcp_project }}"
|
||||
|
@ -93,7 +92,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['resources'] | map(attribute='name') | select("match", ".*my_example_dataset.*") | list | length == 0
|
||||
- results['resources'] | map(attribute='datasetReference') | map(attribute='datasetId') | select("match", ".*my_example_dataset.*") | list | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a dataset that does not exist
|
||||
gcp_bigquery_dataset:
|
||||
|
@ -109,4 +108,3 @@
|
|||
assert:
|
||||
that:
|
||||
- result.changed == false
|
||||
- result.has_key('kind') == False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue