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

Rspec tests (and fixes) #188

Merged
merged 10 commits into from
Nov 22, 2013
Merged

Rspec tests (and fixes) #188

merged 10 commits into from
Nov 22, 2013

Conversation

3flex
Copy link
Contributor

@3flex 3flex commented Nov 22, 2013

I just finished a bit of a personal project - rspec tests for this module!

I didn't have much experience with rspec when I started so these are certainly not perfect but they give very good coverage over the module's functionality and config file output. They're modelled on the puppetlabs/apache specs.

The first commit has tests for the current v0.0.6 version of the module, and the subsequent commits contain various isolated fixes for issues I found. I can provide more detail in each commit's description if required, but none will have any effect on current users other than squashing bugs (this is verified by the tests!) except changing the template test for ipv6_enable to a boolean check instead of checking a string (if people are setting this to 'false' instead of false for example the behaviour for them will change - having said that the module is now working according to the inline documentation at https://github.com/jfryman/puppet-nginx/blob/master/manifests/resource/vhost.pp#L16).

Anyway I appreciate any and all feedback and hope this gets merged, and that it helps to maintain the quality of the module going forward.

Resolves #65
Fixes #186

@3flex 3flex mentioned this pull request Nov 22, 2013
@3flex
Copy link
Contributor Author

3flex commented Nov 22, 2013

Also note that I ensured all tests will work whether ::osfamily or ::operatingsystem is used in params.pp - after merging #183 the tests will still pass (though tests should probably be added to #183 to check the edge cases).

@jfryman
Copy link
Contributor

jfryman commented Nov 22, 2013

This is fantastic, and will help with some much needed TLC on the module internals. Thanks so much for taking the time!

jfryman pushed a commit that referenced this pull request Nov 22, 2013
@jfryman jfryman merged commit 8691db1 into voxpupuli:master Nov 22, 2013
@3flex 3flex deleted the rspec-tests branch November 22, 2013 17:44
@3flex 3flex restored the rspec-tests branch November 22, 2013 17:44
@3flex 3flex deleted the rspec-tests branch November 22, 2013 17:56
cegeka-jenkins pushed a commit to cegeka/puppet-nginx that referenced this pull request Oct 23, 2017
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.

(regression) nested server directives when using SSL vhost Add rspec-puppet test coverage to this module
2 participants