mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-22 12:50:29 -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
|
@ -1,2 +1 @@
|
|||
cloud/gcp
|
||||
unsupported
|
||||
|
|
|
@ -18,9 +18,10 @@
|
|||
name: "{{ resource_name }}"
|
||||
location: us-central1
|
||||
entry_point: helloGET
|
||||
source_archive_url: gs://ansible-cloudfunctions-bucket/function.zip
|
||||
source_archive_url: gs://{{ gcp_project }}-ansible-testing/cloud-function.zip
|
||||
trigger_http: 'true'
|
||||
project: "{{ gcp_project }}"
|
||||
runtime: "python310"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
state: absent
|
||||
|
@ -30,9 +31,10 @@
|
|||
name: "{{ resource_name }}"
|
||||
location: us-central1
|
||||
entry_point: helloGET
|
||||
source_archive_url: gs://ansible-cloudfunctions-bucket/function.zip
|
||||
source_archive_url: gs://{{ gcp_project }}-ansible-testing/cloud-function.zip
|
||||
trigger_http: 'true'
|
||||
project: "{{ gcp_project }}"
|
||||
runtime: "python310"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
state: present
|
||||
|
@ -60,10 +62,13 @@
|
|||
name: "{{ resource_name }}"
|
||||
location: us-central1
|
||||
entry_point: helloGET
|
||||
source_archive_url: gs://ansible-cloudfunctions-bucket/function.zip
|
||||
source_archive_url: gs://{{ gcp_project }}-ansible-testing/cloud-function.zip
|
||||
trigger_http: 'true'
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
# runtime is not sent as it is optional for
|
||||
# existing functions.
|
||||
# runtime: "python310"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
state: present
|
||||
register: result
|
||||
|
@ -77,7 +82,7 @@
|
|||
name: "{{ resource_name }}"
|
||||
location: us-central1
|
||||
entry_point: helloGET
|
||||
source_archive_url: gs://ansible-cloudfunctions-bucket/function.zip
|
||||
source_archive_url: gs://{{ gcp_project }}-ansible-testing/cloud-function.zip
|
||||
trigger_http: 'true'
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
|
@ -107,7 +112,7 @@
|
|||
name: "{{ resource_name }}"
|
||||
location: us-central1
|
||||
entry_point: helloGET
|
||||
source_archive_url: gs://ansible-cloudfunctions-bucket/function.zip
|
||||
source_archive_url: gs://{{ gcp_project }}-ansible-testing/cloud-function.zip
|
||||
trigger_http: 'true'
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue