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

Rework / fix logic in the joyent plugin and improve specs #909

Merged
merged 6 commits into from
Nov 30, 2016

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Nov 29, 2016

This builds on the work that @bahamas10 did in #499. It fixes up the specs to provide proper testing of the logic of the plugin and based on those specs makes some additional fixes to the plugin.

bahamas10 and others added 6 commits May 5, 2015 15:21
- condense code
- touch up style
- don't stat(2) before open(2)
Nil is used throughout Ohai

Signed-off-by: Tim Smith <tsmith@chef.io>
Signed-off-by: Tim Smith <tsmith@chef.io>
Signed-off-by: Tim Smith <tsmith@chef.io>
These specs weren’t covering the actual meat of the plugin. They mocked out the methods, when the methods are where the majority of logic exists. Instead of mocking those methods mock out the files on disk. This also serves to document the structure of the files we’re parsing in the plugin so that’s another win.

Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50
Copy link
Contributor Author

tas50 commented Nov 29, 2016

It should be noted that the original work is covered under the CLA

@tas50 tas50 changed the title Rework logic in the joyent plugin and improve specs Rework / fix logic in the joyent plugin and improve specs Nov 29, 2016
@tas50 tas50 added the Bug label Nov 29, 2016
@tas50 tas50 merged commit 5ac9bdc into master Nov 30, 2016
@tas50 tas50 deleted the bahamas10-dave-1426559693 branch November 30, 2016 18:13
@thommay thommay added Type: Bug Does not work as expected. and removed Bug labels Jan 24, 2017
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants