The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Bug #11643

mysql: add rspec test coverage for database, database_grant and database_user type and provider

Added by Ken Barber over 4 years ago. Updated over 3 years ago.

Status:AcceptedStart date:12/30/2011
Priority:HighDue date:
Assignee:-% Done:


Category:mysqlSpent time:-
Target version:-
Keywords:rspec Branch:

We've Moved!

Ticket tracking is now hosted in JIRA:


Currently there is zero coverage for these types/provider:

  • database
  • database_grant
  • database_user

Before we make any major changes to these we should add decent coverage.

The other parts of the module seem to have coverage however.


#1 Updated by Carl Caum over 4 years ago

I tried writing some tests for my work on converting the providers to use the ruby mysql gem. I have tests for the manifests but am having trouble (due to ignorance) producing tests for the providers. The main problem is finding a way to ensure the SQL query contains text I expect.

#2 Updated by Branan Purvine-Riley about 4 years ago

This is on my task list for next week. I just rewrote the mysql database_grant provider and I’m going to make sure I have tests before I open the pull request. That will clean up 1/3rd of this issue, at least.

#3 Updated by Ryan Coleman over 3 years ago

Looks like this was partially completed. Anyone game to write the remainders?

Also available in: Atom PDF