Closed robin2008 closed 5 years ago
This is the Mock APIs for https://github.ibm.com/xcat2/task_management/issues/256
UT:
curl -X POST "http://10.6.27.1:5000/api/v2/manager/resmgr" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"capacity\": 3}" { "f9b5f8bc-77b5-11e9-93c6-0cc47aea9e02": "c461c022,mid05tor12cn15,mid05tor12cn08" }
curl -X GET "http://10.6.27.1:5000/api/v2/manager/resmgr" { "f9b5f8bc-77b5-11e9-93c6-0cc47aea9e02": [ "c461c022", "mid05tor12cn15", "mid05tor12cn08" ] }
curl -X GET "http://10.6.27.1:5000/api/v2/manager/resmgr?pool=1" { "total": 34, "pool": [ "abcd", "mid05tor12cn02", "mid05tor12cn01", "mid05tor12cn06", "mid05tor12cn07", "mid05tor12cn04", "mid05tor12cn03", "mid05tor12cn09", "mid05tor25", "mid05", "mid05tor12cn14", "c910f05c01bc07", "c461c026", "mid05tor12cn05", "testnode", "mid05tor12cn11", "mid05tor12cn10", "mid05tor12cn13", "mid05tor12cn12", "ipminode", "mid05tor12cn17", "mid05tor12cn16", "mid05tor12cn18", "core01", "node0001", "node0002", "mid05tor12", "mgmtsw01", "mid05tor12cn02k02", "mid05tor12cn16-ipmi", "testnodes", "node-8335-gth-1318c4a", "mid05tor12cn05-bmc", "mid05tor12cn05-bmc-test" ] }
curl -X DELETE "http://10.6.27.1:5000/api/v2/manager/resmgr?name=c461c022" -H "accept: application/json"
curl -X GET "http://10.6.27.1:5000/api/v2/manager/resmgr" {}
I am OK to merge it.
This is the Mock APIs for https://github.ibm.com/xcat2/task_management/issues/256
UT:
curl -X GET "http://10.6.27.1:5000/api/v2/manager/resmgr" {}