A google_filestore_instance is used to test a Google Instance resource
describe google_filestore_instance(project: 'chef-gcp-inspec', zone: 'us-central1-b', name: 'inspecgcp') do
it { should exist }
its('tier') { should cmp 'PREMIUM' }
its('file_shares.count') { should cmp 1 }
its('file_shares.first.capacity_gb') { should cmp '2660' }
its('file_shares.first.name') { should cmp 'inspecgcp' }
its('networks.count') { should cmp 1 }
its('networks.first.network') { should cmp 'default' }
its('networks.first.modes') { should include 'MODE_IPV4' }
end
describe google_filestore_instance(project: 'chef-gcp-inspec', zone: 'us-central1-b', name: 'nonexistent') do
it { should_not exist }
end
Properties that can be accessed from the google_filestore_instance resource:
namedescriptioncreate_timetierPossible values:
labelsfile_sharesnamecapacity_gbnetworksnetworkmodesreserved_ip_rangeip_addressesetagzone
© 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_filestore_instance/