Closed bybai closed 5 years ago
For https://github.ibm.com/xcat2/task_management/issues/272
Des:
UT:
[root@byrh07 postscripts]# curl -X POST "http://10.4.41.7:5000/api/v2/system/nodes/byrh08/power" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"action\": \"on\"}" { "powerstate": "on" } [root@byrh07 postscripts]# curl -X POST "http://10.4.41.7:5000/api/v2/system/nodes/byrh08/power" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"action\": \"off\"}" { "powerstate": "off" } [root@byrh07 postscripts]# curl -X POST "http://10.4.41.7:5000/api/v2/system/nodes/byrh08/power" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"action\": \"state\"}" { "powerstate": "off" }
For https://github.ibm.com/xcat2/task_management/issues/272
Des:
UT: