对于Testkitchen中的测试,我使用带有较旧版本的VirtualBox guest添加项的Vagrant base box。所以每次我运行时间测试中,它更新第一 ==> default: Machine booted and ready!
[default] GuestAdditions versions on your host (5.1
所以在我的食谱我有测试厨师配方如下: secret = Chef::EncryptedDataBagItem.load_secret("/root/.chef/encrypted_data_bag_secret")
# Decrypt the data bag
creds = Chef::EncryptedDataBagItem.load("passwords", "mysql-root",
下面是我kitchen.yml ---
driver:
name: vagrant
provisioner:
name: chef_zero
# You may wish to disable always updating cookbooks in CI or other testing environments.
# For example: