Spec-Zone.ru › Chef 16

Ресурс google_runtime_config_variable

Синтаксис

Используется для проверки ресурса Google Variable.

Примеры

describe google_runtime_config_variable(project: 'chef-gcp-inspec', config: 'inspec-gcp-runtime-config', name: 'prod-variables/hostname') do
  it { should exist }
  its('text') { should cmp 'example.com' }
end

describe google_runtime_config_variable(project: 'chef-gcp-inspec', config: 'inspec-gcp-runtime-config', name: 'nonexistent') do
  it { should_not exist }
end

Свойства

Свойства, доступные к ресурсу:

value
Бинарное значение переменной. Можно задать только это или text.
text
Строковое значение переменной. Можно задать только это или value.
name
Имя ресурса переменной.
config
Имя конфигурации runtime, к которой относится эта переменная.

Разрешения GCP

Убедитесь, что для текущего проекта включен API Cloud Resource Manager.

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

Spec-Zone.ru

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