问题:
我试图使用 chef_zero 来测试以 ruby DSL 格式指定的食谱角色,但是当我尝试使用kitchen converge
. 看起来它无法扩展 中指定的角色
kitchen.yml
。
如何解决:是否无法chef-zero
使用 test-kitchen 来测试食谱中的角色,或者我在我的kitchen.yml
. 如何在本地使用 chef_zero 测试角色。
**chef-environment**:
Chef Development Kit Version: 0.12.0
chef-client version: 12.8.1
berks version: 4.3.0
kitchen version: 1.6.0
**kitchen.yml**:
suites:
- name: default
run_list:
- role[test_role]
**Error**
[2016-05-25T12:58:37-04:00] ERROR: Role test_role (included by 'top level') is in the runlist but does not exist. Skipping expand.
================================================================================
Error expanding the run_list:
================================================================================
Missing Role(s) in Run List:
----------------------------
* test_role included by 'top level'
Original Run List
-----------------
* role[test_role]
厨师-stacktrace.out:
Chef::Exceptions::MissingRole:扩展的运行列表包括不存在的角色:test_role