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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -