title | platform |
---|---|
About the google_pubsub_topics resource |
gcp |
A google_pubsub_topics
is used to test a Google Topic resource
describe google_pubsub_topics(project: 'chef-gcp-inspec') do
it { should exist }
its('names') { should include 'inspec-gcp-topic' }
its('count') { should be >=1 }
end
describe.one do
google_pubsub_topics(project: 'chef-gcp-inspec').names.each do |topic_name|
describe google_pubsub_topic(project: 'chef-gcp-inspec', name: topic_name) do
it { should exist }
end
end
end
Properties that can be accessed from the google_pubsub_topics
resource:
See google_pubsub_topic.md for more detailed information
names
: an array ofgoogle_pubsub_topic
namekms_key_names
: an array ofgoogle_pubsub_topic
kms_key_namelabels
: an array ofgoogle_pubsub_topic
labelsmessage_storage_policies
: an array ofgoogle_pubsub_topic
message_storage_policyschema_settings
: an array ofgoogle_pubsub_topic
schema_settings
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.