A google_compute_backend_services is used to test a Google BackendService resource
This resource has beta fields available. To retrieve these fields, include beta: true in the constructor for the resource
describe google_compute_backend_services(project: 'chef-gcp-inspec') do
its('count') { should be >= 1 }
its('names') { should include 'inspec-gcp-backend-service' }
its('port_names') { should include 'http' }
its('protocols') { should include 'HTTP' }
its('timeout_secs') { should include '10' }
end
Properties that can be accessed from the google_compute_backend_services resource:
See the google_compute_backend_service resource for more information.
affinity_cookie_ttl_secsgoogle_compute_backend_service affinity_cookie_ttl_secbackendsgoogle_compute_backend_service backendscircuit_breakersgoogle_compute_backend_service circuit_breakersconsistent_hashesgoogle_compute_backend_service consistent_hashcdn_policiesgoogle_compute_backend_service cdn_policyconnection_drainingsgoogle_compute_backend_service connection_drainingcreation_timestampsgoogle_compute_backend_service creation_timestampcustom_request_headersgoogle_compute_backend_service custom_request_headersfingerprintsgoogle_compute_backend_service fingerprintdescriptionsgoogle_compute_backend_service descriptionenable_cdnsgoogle_compute_backend_service enable_cdnhealth_checksgoogle_compute_backend_service health_checksidsgoogle_compute_backend_service idiapsgoogle_compute_backend_service iapload_balancing_schemesgoogle_compute_backend_service load_balancing_schemelocality_lb_policiesgoogle_compute_backend_service locality_lb_policynamesgoogle_compute_backend_service nameoutlier_detectionsgoogle_compute_backend_service outlier_detectionport_namesgoogle_compute_backend_service port_nameprotocolsgoogle_compute_backend_service protocolsecurity_policiesgoogle_compute_backend_service security_policysession_affinitiesgoogle_compute_backend_service session_affinitytimeout_secsgoogle_compute_backend_service timeout_seclog_configsgoogle_compute_backend_service log_configThis resource supports all of the above properties as filter criteria, which can be used with where as a block or a method.
Ensure the Compute Engine 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_compute_backend_services/