Spec-Zone.ru › Chef 17

Ресурс google_cloud_scheduler_jobs

[править на GitHub]

Синтаксис

Для проверки ресурса задачи Google используется google_cloud_scheduler_jobs

Примеры

google_cloud_scheduler_jobs(project: 'chef-gcp-inspec', region: ).names.each do |name|
  describe google_cloud_scheduler_job(project: 'chef-gcp-inspec', region: us-central1, name: name) do
    it { should exist }

    its('description') { should cmp 'A description' }
    its('schedule') { should cmp '*/8 * * * *' }
    its('time_zone') { should cmp 'America/New_York' }
    its('http_target.http_method') { should cmp 'POST' }
    its('http_target.uri') { should cmp 'https://example.com/ping' }
  end
end

Свойства

Свойства, к которым можно получить доступ из ресурса google_cloud_scheduler_jobs:

Дополнительную информацию см. в ресурсе google_cloud_scheduler_job.

names
массив google_cloud_scheduler_job имён
descriptions
массив google_cloud_scheduler_job описаний
schedules
массив google_cloud_scheduler_job расписаний
time_zones
массив google_cloud_scheduler_job часовых поясов
attempt_deadlines
массив google_cloud_scheduler_job сроков завершения попыток
retry_configs
массив google_cloud_scheduler_job конфигураций повторных попыток
pubsub_targets
массив google_cloud_scheduler_job целевых объектов Pub/Sub
app_engine_http_targets
массив google_cloud_scheduler_job целевых объектов App Engine HTTP
http_targets
массив google_cloud_scheduler_job целевых объектов HTTP
regions
массив google_cloud_scheduler_job регионов

Критерии фильтрации

Этот ресурс поддерживает все вышеперечисленные свойства как критерии фильтрации, которые могут использоваться с where в качестве блока или метода.

Разрешения GCP

© 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_cloud_scheduler_jobs/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API