對於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: