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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -