title | platform |
---|---|
About the google_sql_databases resource |
gcp |
A google_sql_databases
is used to test a Google Database resource
describe google_sql_databases(project: 'chef-gcp-inspec', instance: 'my-database') do
it { should exist }
its('names') { should include 'my-db' }
its('instances') { should include 'my-database' }
end
Properties that can be accessed from the google_sql_databases
resource:
See google_sql_database.md for more detailed information
charsets
: an array ofgoogle_sql_database
charsetcollations
: an array ofgoogle_sql_database
collationnames
: an array ofgoogle_sql_database
nameinstances
: an array ofgoogle_sql_database
instance
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 SQL Admin API is enabled for the current project.