-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
Refactor unit tests to iterate over all supported OS's #131
Conversation
ensuring coverage was not removed for any resources that were already covered
badb265
to
ae43ab8
Compare
For some reason, every time I run the tests on any of my local machines, everything passes, but each run is for some reason failing on travis.
It has to do with the |
actually, I realize now that this is a result of including
I think we may need to add |
provider rarely needs to be specified with the puppet resource type, as puppet will reliably select the correct provider for the node. Additionally, by passing in , , etc..., puppet will reliably control the gitlab-runsvdir service using /usr/bin/gitlab-ctl commands
I wound up removing the provider rarely needs to be specified with the puppet resource Additionally, by passing in , |
At the moment, this is failing due to the usage of The good news is that this should have always been failing, (since In order to fix this, I have two options:
Could one of the project owners/maintainers let me know your thoughts on this one? @tobru ? |
I decided to just use the native yum |
Thanks @LongLiveCHIEF for your work. It will take some time to review, I'll come back to it later. |
@tobru not a problem. I realize this is a MR of a large magnitude. One thing this would affect, is the limitations mentioned in the
We would be able to eliminate this statement with this Pull Request, since it adds tests for RPM, yum, and RHEL family OS's with equal coverage as debian based OS's.
There were actually some bugs that I found and fixed, that would have caused this module to fail previously on systems in the If you would like to approve this MR, and want me to update these two statements, please let me know. I'd also like to become a contributor. I have some pretty great enhancements planned. For example: Feature-allow-package-repo-configuration |
Thanks, @LongLiveCHIEF!
Would you mind pointing out some of the bugs you found (and the conditions are required for them to occur)? I've been running new acceptance tests on EL7 (for release |
It would have depended on your version and configuration of puppet. But here you go: 1192cc6#diff-a276806bea2dfcf1f57c33aee19c7309L53 The reason for this is what I was talking about above |
@tobru any updates? I have some other work ready to go, but I'd like to see this final review decision before I submit any further merges. Thanks! |
@LongLiveCHIEF Thanks a lot for your work, I think this is fine and I've merged your changes. A release will most probably bump the major version number as removing parameters is a change of the interface. |
I think there is a lingering issue with this merge request. @LongLiveCHIEF you removed the references to the Is the right thing to do here just remove the Facter file and the line in the init_spec.rb file? |
Yeah, probably. I'll take a closer look tomorrow morning and provide an update. |
I was preparing to make a merge request for a new feature, and found that I couldn't really add a spec to it for both
deb
andrpm
without duplicating about 20 LOC in thespec/classes/init_spec.rb
file.I used one of the more useful features of the rspec-puppet-facts gem, to beef up the quality of the tests, and refactored the design to allow new features to be added while typically only requiring 4 new lines of code to test the feature across all supported operating systems.
The overall goal of this PR is to allow us to more easily add new specs by increasing the flexibility of the testing utilities, while simultaneously increasing the likelihood we'll catch a bug for a supported os before it's tagged to a release.
This PR is quite large, so here's a few bullets to help navigate it:
67%
->72%
)54
->319
)apt
vsyum
. (see code for this example)