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
parent c5723b214f
commit 0387ad3c17
10 changed files with 203 additions and 134 deletions

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Build the cloud function zip file,
# in the desired cloud function source format.
if [ -f ../cloud-function.zip ]; then
rm ../cloud-function.zip
fi
zip ../cloud-function.zip *

View file

@ -0,0 +1,9 @@
import functions_framework
# Register an HTTP function with the Functions Framework
@functions_framework.http
def helloGET(request):
# Your code here
# Return an HTTP response
return "OK"

View file

@ -0,0 +1 @@
functions-framework==3.*