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' }
end
Properties that can be accessed from the google_cloudfunctions_cloud_functions resource:
See the google_cloudfunctions_cloud_function resource for more information.
namesgoogle_cloudfunctions_cloud_function namedescriptionsgoogle_cloudfunctions_cloud_function descriptionstatusesgoogle_cloudfunctions_cloud_function statusentry_pointsgoogle_cloudfunctions_cloud_function entry_pointruntimesgoogle_cloudfunctions_cloud_function runtimetimeoutsgoogle_cloudfunctions_cloud_function timeoutavailable_memory_mbsgoogle_cloudfunctions_cloud_function available_memory_mbservice_account_emailsgoogle_cloudfunctions_cloud_function service_account_emailupdate_timesgoogle_cloudfunctions_cloud_function update_timeversion_idsgoogle_cloudfunctions_cloud_function version_idlabelsgoogle_cloudfunctions_cloud_function labelsenvironment_variablesgoogle_cloudfunctions_cloud_function environment_variablessource_archive_urlsgoogle_cloudfunctions_cloud_function source_archive_urlsource_upload_urlsgoogle_cloudfunctions_cloud_function source_upload_urlsource_repositoriesgoogle_cloudfunctions_cloud_function source_repositoryhttps_triggersgoogle_cloudfunctions_cloud_function https_triggerevent_triggersgoogle_cloudfunctions_cloud_function event_triggerlocationsgoogle_cloudfunctions_cloud_function locationThis resource supports all of the above properties as filter criteria, which can be used with where as a block or a method.
Ensure the Cloud Functions API is enabled for the current project.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/inspec/resources/google_cloudfunctions_cloud_functions/