A google_resourcemanager_folder is used to test a Google Folder resource
describe.one do
google_resourcemanager_folders(parent: 'organizations/12345').names.each do |name|
describe google_resourcemanager_folder(name: name) do
it { should exist }
its('display_name') { should eq 'inspec-gcp-folder' }
end
end
end
Properties that can be accessed from the google_resourcemanager_folder resource:
namelifecycle_statePossible values:
create_timeparentdisplay_name[\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.Ensure the Cloud Resource Manager 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_resourcemanager_folder/