-
Notifications
You must be signed in to change notification settings - Fork 19
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
redfishpower: support test mode #143
Commits on Feb 9, 2024
-
redfishpower: fix invalid tabbing
Problem: There is some inconsistent tabbing. Fix it!
Configuration menu - View commit details
-
Copy full SHA for 678e111 - Browse repository at this point
Copy the full SHA 678e111View commit details -
redfishpower: group curl code together
Problem: In several functions curl API calls are not "grouped" together. They are oddly called at different points in the function even though it is not necessary. This is likely due to early development and cleanup was forgotten. Group the curl API calls together so the code is a little cleaner.
Configuration menu - View commit details
-
Copy full SHA for b95f917 - Browse repository at this point
Copy the full SHA b95f917View commit details
Commits on Feb 10, 2024
-
redfishpower: create macros for commands
Problem: The commands "stat", "on", "off", and "cycle" are hard coded everywhere. This isn't good programming practice. Create macros CMD_STAT, CMD_ON, CMD_OFF, and CMD_CYCLE instead of hard coding it everywhere.
Configuration menu - View commit details
-
Copy full SHA for 5361ca9 - Browse repository at this point
Copy the full SHA 5361ca9View commit details -
redfishpower: support a test mode
Problem: As redfishpower gets more complex, testing of the actual redfishpower co-process instead of the simulated one under t/simulators will become important. Add a test-mode into redfishpower via a --test-mode option. The test mode essentially disables all internal curl API calls so no actual network communication is done. All network calls are just assumed to work immediately. The power status of all hosts is tracked after off/on/cycle calls are made. Fixes chaos#131
Configuration menu - View commit details
-
Copy full SHA for 36962fe - Browse repository at this point
Copy the full SHA 36962feView commit details -
t: use redfishpower --test-mode
Problem: Redfishpower now has a test mode, but it is not being used. Use it in t0029-redfish.t.
Configuration menu - View commit details
-
Copy full SHA for cbd6432 - Browse repository at this point
Copy the full SHA cbd6432View commit details -
t: remove redfishpower simulator
Problem: Redfishpower now has a --test-mode option, so the redfishpower simulator is no longer needed. Remove the redfishpower simulator from t/simulators.
Configuration menu - View commit details
-
Copy full SHA for e578b46 - Browse repository at this point
Copy the full SHA e578b46View commit details -
workflows: build redfishpower in distcheck
Problem: The t0029-redfish.t test now uses the redfishpower --test-mode option, not the redfishpower simulator. This requires 'make distcheck' to build redfishpower. Set the DISTCHECK_CONFIGURE_FLAGS environment variable to ensure distcheck builds redfishpower.
Configuration menu - View commit details
-
Copy full SHA for 9a44768 - Browse repository at this point
Copy the full SHA 9a44768View commit details