Fixing additional tests

Fixing some of the existing failing tests in the CI process.

Specifically:

- gcp_appengine_firewall_rule: modified validation to support the
  default firewall rule
- gcp_cloudfunctions_cloud_function: bootstrapping the required GS
  bucket and files for creating a valid cloud function.
  - Slight update to the functionality, which now requires a runtime
    specified for new functions.
-
This commit is contained in:
Yusuke Tsutsumi 2022-10-08 17:36:39 +00:00
commit 0387ad3c17
10 changed files with 203 additions and 134 deletions

View file

@ -90,7 +90,9 @@
- name: verify that command succeeded
assert:
that:
- results['resources'] | length == 0
# there is a default firewall rule that cannot be
# deleted, so the length should be 1.
- results['resources'] | length == 1
# ----------------------------------------------------------------------------
- name: delete a firewall rule that does not exist
google.cloud.gcp_appengine_firewall_rule: