mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-06-27 19:20:19 -07:00
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:
parent
c5723b214f
commit
0387ad3c17
10 changed files with 203 additions and 134 deletions
7
test-fixtures/cloud-function-source/build-function-zip.sh
Executable file
7
test-fixtures/cloud-function-source/build-function-zip.sh
Executable 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 *
|
9
test-fixtures/cloud-function-source/main.py
Normal file
9
test-fixtures/cloud-function-source/main.py
Normal 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"
|
1
test-fixtures/cloud-function-source/requirements.txt
Normal file
1
test-fixtures/cloud-function-source/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
|||
functions-framework==3.*
|
Loading…
Add table
Add a link
Reference in a new issue