title | platform |
---|---|
About the google_dns_resource_record_sets resource |
gcp |
A google_dns_resource_record_sets
is used to test a Google ResourceRecordSet resource
This resource has beta fields available. To retrieve these fields, include beta: true
in the constructor for the resource
describe google_dns_resource_record_sets(project: 'chef-gcp-inspec', name: 'backend.my.domain.com.', managed_zone: 'inspec-gcp-managed-zone') do
its('count') { should eq 3 }
its('types') { should include 'A' }
its('ttls') { should include '300' }
its('targets.flatten') { should include '8.8.8.8' }
its('targets.flatten') { should include '8.8.4.4' }
end
Properties that can be accessed from the google_dns_resource_record_sets
resource:
See google_dns_resource_record_set.md for more detailed information
names
: an array ofgoogle_dns_resource_record_set
nametypes
: an array ofgoogle_dns_resource_record_set
typettls
: an array ofgoogle_dns_resource_record_set
ttltargets
: an array ofgoogle_dns_resource_record_set
targetmanaged_zones
: an array ofgoogle_dns_resource_record_set
managed_zone
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 Google Cloud DNS API is enabled for the current project.