The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #11643

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

Added by Ken Barber over 2 years ago. Updated over 1 year ago.

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

0%

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

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket may be automatically exported to the MODULES project on JIRA using the button below:


Description

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.

History

#1 Updated by Carl Caum over 2 years ago

I tried writing some tests for my work on converting the providers to use the ruby mysql gem. https://github.com/puppetlabs/puppetlabs-mysql/pull/30 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 almost 2 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 1 year ago

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

Also available in: Atom PDF