Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 978 Bytes

google_spanner_databases.md

File metadata and controls

34 lines (26 loc) · 978 Bytes
title platform
About the google_spanner_databases resource
gcp

Syntax

A google_spanner_databases is used to test a Google Database resource

Examples


describe.one do
	google_spanner_databases(project: 'chef-gcp-inspec', instance: 'spinstance').names.each do |name|
	  describe name do
	  	it { should match 'spdatabase' }
    end
  end
end

Properties

Properties that can be accessed from the google_spanner_databases resource:

See google_spanner_database.md for more detailed information

  • names: an array of google_spanner_database name
  • instances: an array of google_spanner_database instance

Filter Criteria

This resource supports all of the above properties as filter criteria, which can be used with where as a block or a method.

GCP Permissions

Ensure the Cloud Spanner API is enabled for the current project.