title | platform |
---|---|
About the google_dns_managed_zones resource |
gcp |
A google_dns_managed_zones
is used to test a Google ManagedZone resource
This resource has beta fields available. To retrieve these fields, include beta: true
in the constructor for the resource
describe google_dns_managed_zones(project: 'chef-gcp-inspec') do
it { should exist }
its('zone_names') { should include 'example-zone' }
its('zone_dns_names') { should include 'dns-zone-name.com.' }
end
describe google_dns_managed_zones(project: 'chef-inspec-gcp') do
its('count') { should be <= 100}
end
describe google_dns_managed_zones(project: 'chef-inspec-gcp') do
its('zone_names') { should include "zone-name" }
end
google_dns_managed_zones(project: 'chef-inspec-gcp').where(zone_name: /^myzone/).zone_names.each do |zone_name|
describe google_dns_managed_zone(project: 'chef-inspec-gcp', zone: zone_name) do
it { should exist }
end
end
Properties that can be accessed from the google_dns_managed_zones
resource:
See google_dns_managed_zone.md for more detailed information
descriptions
: an array ofgoogle_dns_managed_zone
descriptionzone_dns_names
: an array ofgoogle_dns_managed_zone
dns_namednssec_configs
: an array ofgoogle_dns_managed_zone
dnssec_configzone_ids
: an array ofgoogle_dns_managed_zone
idzone_names
: an array ofgoogle_dns_managed_zone
namename_servers
: an array ofgoogle_dns_managed_zone
name_serversname_server_sets
: an array ofgoogle_dns_managed_zone
name_server_setcreation_times
: an array ofgoogle_dns_managed_zone
creation_timelabels
: an array ofgoogle_dns_managed_zone
labelsvisibilities
: an array ofgoogle_dns_managed_zone
visibilityprivate_visibility_configs
: an array ofgoogle_dns_managed_zone
private_visibility_configforwarding_configs
: an array ofgoogle_dns_managed_zone
forwarding_configpeering_configs
: an array ofgoogle_dns_managed_zone
peering_configreverse_lookups
: (Beta only) an array ofgoogle_dns_managed_zone
reverse_lookupservice_directory_configs
: (Beta only) an array ofgoogle_dns_managed_zone
service_directory_config
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.