- From: Sachin Sagar Rai <
>
- To:
- Subject: [chef] Assert the mysql user and database
- Date: Fri, 21 Jun 2013 14:07:09 +0545
I'm writing a lwrp for a php app using the test-kitchen, berkshelf and minitest-chef-handler
Here is the example spec I'm using https://github.com/calavera/minitest-chef-handler/blob/v0.4.0/examples/spec_examples/files/default/tests/minitest/example_test.rb
But one thing I'm confused about is how to assert the mysql user is created with privileges on the particular database.
The example doesn't have such assertion. I am using the database cookbook's lwrp to create db user and database.
How do I test it?
-------------------------------------------
http://funsole.com
- [chef] Assert the mysql user and database, Sachin Sagar Rai, 06/21/2013
Archive powered by MHonArc 2.6.16.