mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-21 19:22:05 +00:00
Add restapi testcase to reset attribute
This commit is contained in:
parent
27eb307a59
commit
f9f79cbd72
@ -15,6 +15,7 @@ restapi_list_temp_CN_2
|
||||
restapi_delete_temp_CN_2
|
||||
restapi_create_temp_CN_put
|
||||
restapi_add_id_temp_CN
|
||||
restapi_reset_id_temp_CN
|
||||
restapi_modify_vmmemory_temp_CN
|
||||
restapi_delete_id_temp_CN
|
||||
restapi_show_temp_CN_osimage
|
||||
|
@ -174,6 +174,15 @@ cmd:lsdef temp_node1
|
||||
check:output=~id=100
|
||||
end
|
||||
|
||||
start:restapi_reset_id_temp_CN
|
||||
description: Reset to blank an id field of a temporary compute node with "curl -X PUT"
|
||||
label:restapi
|
||||
cmd:username=__GETTABLEVALUE(key,system,username,passwd)__;password=__GETTABLEVALUE(key,system,password,passwd)__;xdsh $$CN "curl -X PUT -s --cacert /root/ca-cert.pem 'https://$$MN/xcatws/nodes/temp_node1?userName=$username&userPW=$password' -H Content-Type:application/json --data '{\"id\":\"\"}'"
|
||||
check:rc==0
|
||||
cmd:lsdef temp_node1
|
||||
check:output!~id=
|
||||
end
|
||||
|
||||
start:restapi_modify_vmmemory_temp_CN
|
||||
description: Modify the vmmemory field of a temporary computer node with "curl -X PUT"
|
||||
label:restapi
|
||||
|
Loading…
x
Reference in New Issue
Block a user