title | platform |
---|---|
About the google_organizations resource |
gcp |
A google_organizations
is used to test a Google Organization resource
describe google_organizations do
its('names') { should include "organizations/123456" }
end
describe google_organizations do
its('count') { should be <= 100}
end
describe google_organizations do
its('names') { should include "organization/1234" }
end
describe google_organizations do
its('display_names') { should include "google.com" }
end
describe google_organizations do
its('lifecycle_state'){ should eq 'ACTIVE' }
end
google_organizations.where(display_name: /^goog/, lifecycle_state: 'ACTIVE').names.each do |name|
describe google_organization(name: name) do
it { should exist }
end
end
Properties that can be accessed from the google_organizations
resource:
See google_organization.md for more detailed information
names
: an array ofgoogle_organization
namedisplay_names
: an array ofgoogle_organization
display_namelifecycle_states
: an array ofgoogle_organization
lifecycle_statecreation_times
: an array ofgoogle_organization
creation_timeowners
: an array ofgoogle_organization
owner
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 Resource Manager API is enabled for the current project.