How to test a chef recipe with encrypted data bags -
so in recipe have following:
secret = chef::encrypteddatabagitem.load_secret("/root/.chef/encrypted_data_bag_secret") # decrypt data bag creds = chef::encrypteddatabagitem.load("passwords", "mysql-root", secret)
how can override these lines test data? recipe installs mysql database, hence, test existence of db.
i have created separate data bags test desired secrets , load them, if test kitchen run
Comments
Post a Comment