diff options
author | The Magician <magic-modules@google.com> | 2019-07-12 12:08:09 -0700 |
---|---|---|
committer | ansibot <ansibot@users.noreply.github.com> | 2019-07-12 15:08:08 -0400 |
commit | 5cd0e2f19f0e592897c23a515a4750a3bf1bd569 (patch) | |
tree | 3f2eb7fb7baf76ee2c3ab39a1a6ca69f86920a81 /test/integration/targets/gcp_bigquery_table | |
parent | 70db07fa82d3e3bb1e8acf4c225e786a37adbf28 (diff) | |
download | ansible-5cd0e2f19f0e592897c23a515a4750a3bf1bd569.tar.gz |
Bug fixes for GCP modules (#58900)
Diffstat (limited to 'test/integration/targets/gcp_bigquery_table')
-rw-r--r-- | test/integration/targets/gcp_bigquery_table/tasks/main.yml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/integration/targets/gcp_bigquery_table/tasks/main.yml b/test/integration/targets/gcp_bigquery_table/tasks/main.yml index a06a71b8e9..8d454099dd 100644 --- a/test/integration/targets/gcp_bigquery_table/tasks/main.yml +++ b/test/integration/targets/gcp_bigquery_table/tasks/main.yml @@ -66,7 +66,7 @@ - name: verify that command succeeded assert: that: - - results['resources'] | map(attribute='name') | select("match", ".*example_table.*") | list | length == 1 + - results['resources'] | map(attribute='tableReference') | map(attribute='tableId') | select("match", ".*example_table.*") | list | length == 1 # ---------------------------------------------------------------------------- - name: create a table that already exists gcp_bigquery_table: @@ -104,7 +104,6 @@ assert: that: - result.changed == true - - result.has_key('kind') == False - name: verify that table was deleted gcp_bigquery_table_facts: dataset: example_dataset @@ -117,7 +116,7 @@ - name: verify that command succeeded assert: that: - - results['resources'] | map(attribute='name') | select("match", ".*example_table.*") | list | length == 0 + - results['resources'] | map(attribute='tableReference') | map(attribute='tableId') | select("match", ".*example_table.*") | list | length == 0 # ---------------------------------------------------------------------------- - name: delete a table that does not exist gcp_bigquery_table: @@ -136,7 +135,6 @@ assert: that: - result.changed == false - - result.has_key('kind') == False #--------------------------------------------------------- # Post-test teardown # If errors happen, don't crash the playbook! |