Spec-Zone.ru › Chef 16

Ресурс google_cloud_scheduler_jobs

Синтаксис

Для проверки ресурса Google Job используется 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