So in my recipe I have the following:
secret = Chef::EncryptedDataBagItem.load_secret("/root/.chef/encrypted_data_bag_secret")
# Decrypt the data bag
creds = Chef::EncryptedDataBagItem.load("passwords", "mysql-root", secret)
How can I override these lines with my test data? The recipe installs a MySQL database, hence, I would like to test for the existence of the DB.