A google_cloudfunctions_cloud_functions is used to test a Google CloudFunction resource


describe google_cloudfunctions_cloud_functions(project: 'chef-gcp-inspec', location: 'europe-west1') do
  its('descriptions') { should include 'A description of the function' }
  its('entry_points') { should include 'hello' }


Properties that can be accessed from the google_cloudfunctions_cloud_functions resource:

See for more detailed information * names: an array of google_cloudfunctions_cloud_function name * descriptions: an array of google_cloudfunctions_cloud_function description * statuses: an array of google_cloudfunctions_cloud_function status * entry_points: an array of google_cloudfunctions_cloud_function entrypoint * runtimes: an array of `googlecloudfunctionscloudfunctionruntime *timeouts: an array ofgooglecloudfunctionscloudfunctiontimeout *availablememorymbs: an array ofgooglecloudfunctionscloudfunctionavailable_memory_mb *serviceaccountemails: an array ofgooglecloudfunctionscloudfunction` serviceaccountemail * `updatetimes: an array ofgooglecloudfunctionscloudfunction` updatetime * version_ids: an array of google_cloudfunctions_cloud_function versionid * labels: an array of `googlecloudfunctionscloudfunctionlabels *environmentvariables: an array ofgooglecloudfunctionscloudfunctionenvironment_variables *sourcearchiveurls: an array ofgooglecloudfunctionscloudfunction` sourcearchiveurl * `sourceuploadurls: an array ofgooglecloudfunctionscloudfunctionsource_upload_url *sourcerepositories: an array ofgooglecloudfunctionscloudfunctionsource_repository *httpstriggers: an array ofgooglecloudfunctionscloudfunctionhttps_trigger *eventtriggers: an array ofgooglecloudfunctionscloudfunction` event_trigger

Filter Criteria

This resource supports all of the above properties as filter criteria, which can be used with where as a block or a method.

GCP Permissions

Ensure the Cloud Functions API is enabled for the current project.