Ресурс google_dns_resource_record_sets
Синтаксис
Для проверки ресурса Google ResourceRecordSet используется google_dns_resource_record_sets
Ресурс бета-версии
Этот ресурс содержит доступные поля бета-версии. Чтобы получить доступ к этим полям, включите beta: true в конструктор ресурса
Примеры
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
Свойства
Свойства, к которым можно получить доступ из ресурса google_dns_resource_record_sets:
Дополнительную информацию см. в ресурсе google_dns_resource_record_set.
names- массив имен
google_dns_resource_record_set types- массив типов
google_dns_resource_record_set ttls- массив значений ttl
google_dns_resource_record_set targets- массив целевых значений
google_dns_resource_record_set managed_zones- массив управляемых зон
google_dns_resource_record_set
Критерии фильтрации
Этот ресурс поддерживает все вышеперечисленные свойства в качестве критериев фильтрации, которые могут использоваться с where в качестве блока или метода.
Разрешения GCP
Убедитесь, что для текущего проекта включен API Google Cloud DNS.
© 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_dns_resource_record_sets/