A google_pubsub_subscriptions is used to test a Google Subscription resource
describe google_pubsub_subscriptions(project: 'chef-gcp-inspec') do
its('count') { should be >= 1 }
end
google_pubsub_subscriptions(project: 'chef-gcp-inspec').names.each do |subscription_name|
describe google_pubsub_subscription(project: 'chef-gcp-inspec', name: subscription_name) do
it { should exist }
end
end
Properties that can be accessed from the google_pubsub_subscriptions resource:
See the google_pubsub_subscription resource for more information.
namesgoogle_pubsub_subscription nametopicsgoogle_pubsub_subscription topiclabelsgoogle_pubsub_subscription labelspush_configsgoogle_pubsub_subscription push_configack_deadline_secondsgoogle_pubsub_subscription ack_deadline_secondsmessage_retention_durationsgoogle_pubsub_subscription message_retention_durationretain_acked_messagesgoogle_pubsub_subscription retain_acked_messagesexpiration_policiesgoogle_pubsub_subscription expiration_policydead_letter_policiesgoogle_pubsub_subscription dead_letter_policyThis 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 Pub/Sub 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_pubsub_subscriptions/