[chef] Assert the mysql user and database


Chronological Thread 
  • 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?

-------------------------------------------
@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.com
http://funsole.com
Sent with Sparrow



  • [chef] Assert the mysql user and database, Sachin Sagar Rai, 06/21/2013

Archive powered by MHonArc 2.6.16.

§