Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-2392) Automated Tests for sqlserver::config #140

Conversation

phongdly
Copy link
Contributor

No description provided.

@zreichert
Copy link
Contributor

@phongdly I think these tests would be stronger if you validated that the resource that you are attempting to create (database , login) where actually created. This assumes that the credentials contained in sqlserver::config are required to create those resources.

@@ -75,6 +77,24 @@ def run_sql_query(host, opts = {}, &block)
end
end

def run_simple_sql_query(host, opts = {})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should you remove the 'run_sql_query' method? Im not sure if that old method is ever used. It seems like this new method had the same purpose, the difference being that this method works. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally like the way 'run_sql_query' was implemented, I think it's better to consolidate the two methods in the next sprint.

@phongdly
Copy link
Contributor Author

@zreichert : updated

zreichert added a commit that referenced this pull request Aug 26, 2015
…est_sqlserver-config

(MODULES-2392) Automated Tests for sqlserver::config
@zreichert zreichert merged commit 78077b9 into puppetlabs:master Aug 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants