title | platform |
---|---|
About the google_dns_managed_zones Resource |
gcp |
Use the google_dns_managed_zones
InSpec audit resource to test properties of a single GCP DNS managed zone.
A google_dns_managed_zone
resource block declares the tests for a single GCP zone by project and name.
describe google_dns_managed_zone(project: 'chef-inspec-gcp', zone: 'zone-name') do
it { should exist }
end
The following examples show how to use this InSpec audit resource.
describe google_dns_managed_zone(project: 'chef-inspec-gcp', zone: 'zone-name') do
it { should exist }
end
describe google_dns_managed_zone(project: 'chef-inspec-gcp', zone: 'zone-name') do
its('dns_name') { should match 'mydomain.com' }
end
describe google_dns_managed_zone(project: 'chef-inspec-gcp', zone: 'zone-name') do
its('name_servers') { should include 'ns-cloud-d1.googledomains.com.' }
end
creation_time
,creation_time_date
,description
,dns_name
,dnssec_config
,id
,kind
,name
,name_servers
,key_signing_key_algorithm
,zone_signing_key_algorithm
Ensure the Cloud DNS API is enabled for the project.