這兩者有什麼區別? it { should be_owned_by 'cool_user' }
vs
its('owner') { should eq 'cool_user' }
it { should be_grouped_into 'cool_group' }
vs
its('group') { should eq 'cool_group' }
所以在我的食譜我有測試廚師配方如下: secret = Chef::EncryptedDataBagItem.load_secret("/root/.chef/encrypted_data_bag_secret")
# Decrypt the data bag
creds = Chef::EncryptedDataBagItem.load("passwords", "mysql-root",
web_app_jar = Chef::Config[:file_cache_path] + 'http://1.1-SNAPSHOT/20170803.130333-19.jar
'
spring_boot_web_app 'app_0' do
jar_remote_path web_app_jar
end
spring_boot_web_app 'app_1' do