-
Notifications
You must be signed in to change notification settings - Fork 99
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
Consolr dangerous asset behavior and unit tests #359
Consolr dangerous asset behavior and unit tests #359
Conversation
18d3ef6
to
ccf325e
Compare
@@ -0,0 +1 @@ | |||
coverage/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a new line please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, was in the middle of fixing it when you commented.
ccf325e
to
f269ea4
Compare
|
||
it 'does log clear' do | ||
expect { @console.start({:tag => dangerous_maintenance_tag, :log => 'clear'}) }.to output("sel clear\nSUCCESS\n").to_stdout_from_any_process | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how come these log commands are considered safe and tested via that mechanism?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log
takes an argument (list
or clear
). The others take booleans. I think we should change the way its structured, but this PR was already too big.
This is amazing!!! and looks good to me, but reuse would be improved if:
IMO this would allow people (me) to use this gem for other kinds of safe ipmi hacking. e.g. nagios check... |
f269ea4
to
d9c0a18
Compare
@roymarantz - I like all those ideas, but I think I want to do them in future PRs. This one is already pretty big, and I don't want to change too much at once. |
@@ -0,0 +1,4 @@ | |||
host: https://collins.dc.net |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best practice is to use example.com: https://tools.ietf.org/html/rfc2606#section-3
other then the nitpick 👍 |
d9c0a18
to
1002633
Compare
1002633
to
502de88
Compare
…n-dangerous-assets Consolr dangerous asset behavior and unit tests
Fixed some bugs around how dangerous assets and statuses behave, and added unit tests.
@maddalab @byxorna @roymarantz @defect @sushruta @funzoneq