我制作了一本新的食谱,并尝试通过厨房进行测试。
$ chef generate cookbook mycookbook
$ cd mycookbook
$ kitchen test
结果是:
-----> Starting Kitchen (v1.11.1)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ClientError
>>>>>> Message: Could not load the 'inspec' verifier from the load path. Please ensure that your transport is installed as a gem or included in your Gemfile if using Bundler.
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
我查了.kitchen/logs/kitchen.log
,但没有。
答案 0 :(得分:2)
我通过安装用于厨房的Inspec驱动程序解决了此错误。 https://github.com/inspec/kitchen-inspec
# Install
gem install kitchen-inspec
# Verify error
kitchen list
答案 1 :(得分:0)
可能因为没有启动厨房而发生。
$ kitchen init