A google_storage_bucket_acl is used to test a Google BucketACL resource
describe google_storage_bucket_acl(bucket: 'storage-bucket-name', entity: user-email) do
it { should exist }
its('role') { should cmp "OWNER" }
its('bucket') { should eq 'storage-bucket-name' }
its('email') { should include entity-email.com }
end
describe google_storage_bucket_acl(bucket: 'storage-bucket-name', entity: "allUsers") do
it { should_not exist }
end
describe google_storage_bucket_acl(bucket: 'bucket-buvsjjcndqz', entity: '[email protected]') do
it { should exist }
end
describe google_storage_bucket_acl(bucket: 'bucket-buvsjjcndqz', entity: '[email protected]') do
its('role') { should eq 'OWNER' }
end
Properties that can be accessed from the google_storage_bucket_acl resource:
domainemailentityentity_ididproject_teamproject_numberteamPossible values:
rolePossible values:
Ensure the Google Cloud Storage 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_storage_bucket_acl/