-
Notifications
You must be signed in to change notification settings - Fork 288
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
Clean up funcs around power on and off: #7512
Clean up funcs around power on and off: #7512
Conversation
Removed skipped tinkerbell tests that used power on or off. Removed power on and off from all other tests. We should not be powering on or off machines manually. ValidateHardwareDecommissioned will now validate machines are off and then if any are not off we call powerOffHardware and fail the test. We power off so that subsequent runs won't have issues with multiple Boots DHCP servers running. Also updated the logic around checking the response from bmclib for power state. Depending on the provider the power state comes back different. For example, with ipmitool the result will be "Chassis Power is off", while with redfish the result will be "off". Signed-off-by: Jacob Weinstock <[email protected]>
Signed-off-by: Jacob Weinstock <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7512 +/- ##
=======================================
Coverage 73.48% 73.49%
=======================================
Files 579 579
Lines 36357 36362 +5
=======================================
+ Hits 26718 26723 +5
Misses 7875 7875
Partials 1764 1764 ☔ View full report in Codecov by Sentry. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jacobweinstock The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
/lgtm |
Issue #, if available:
Description of changes:
Removed skipped tinkerbell tests that used power on or off. Removed power on and off from all other tests. We should not be powering on or off machines manually. ValidateHardwareDecommissioned will now validate machines are off and then if any are not off we call powerOffHardware and fail the test. We power off so that subsequent runs won't have issues with multiple Boots DHCP servers running.
Also updated the logic around checking the response from bmclib for power state. Depending on the provider the power state comes back different. For example, with ipmitool the result will be "Chassis Power is off", while with redfish the result will be "off".
Testing (if applicable):
Documentation added/planned (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.