A google_spanner_instance is used to test a Google Instance resource
describe google_spanner_instance(project: 'chef-gcp-inspec', name: 'spinstance', config: 'regional-us-east1') do
it { should exist }
its('config') { should match 'regional-us-east1' }
its('name') { should match 'spinstance' }
its('display_name') { should eq 'inspectest' }
its('node_count') { should eq '1' }
its('labels') { should include('env' => 'test') }
end
Properties that can be accessed from the google_spanner_instance resource:
nameconfigregional-europe-west1 , us-central etc. In order to obtain a valid list please consult the Configuration section of the docs.display_namenode_countlabels"key": "value" pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.Ensure the Cloud Spanner 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_spanner_instance/