title | platform |
---|---|
About the google_pubsub_subscriptions resource |
gcp |
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 google_pubsub_subscription.md for more detailed information
names
: an array ofgoogle_pubsub_subscription
nametopics
: an array ofgoogle_pubsub_subscription
topiclabels
: an array ofgoogle_pubsub_subscription
labelspush_configs
: an array ofgoogle_pubsub_subscription
push_configack_deadline_seconds
: an array ofgoogle_pubsub_subscription
ack_deadline_secondsmessage_retention_durations
: an array ofgoogle_pubsub_subscription
message_retention_durationretain_acked_messages
: an array ofgoogle_pubsub_subscription
retain_acked_messagesexpiration_policies
: an array ofgoogle_pubsub_subscription
expiration_policyfilters
: an array ofgoogle_pubsub_subscription
filterdead_letter_policies
: an array ofgoogle_pubsub_subscription
dead_letter_policyretry_policies
: an array ofgoogle_pubsub_subscription
retry_policyenable_message_orderings
: an array ofgoogle_pubsub_subscription
enable_message_ordering
This 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.