mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-28 23:51:32 -07:00
using a better jinja2 filter to make tests less flakey (#294)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
adc0352c84
commit
50d10946f7
10 changed files with 20 additions and 20 deletions
|
@ -67,7 +67,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['resources'] | length >= 1
|
||||
- results['resources'] | map(attribute='name') | select("match", ".*job.*") | list | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a job that already exists
|
||||
gcp_cloudscheduler_job:
|
||||
|
@ -128,7 +128,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['resources'] | length == 0
|
||||
- results['resources'] | map(attribute='name') | select("match", ".*job.*") | list | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a job that does not exist
|
||||
gcp_cloudscheduler_job:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue