2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Add restapi testcase to reset attribute

This commit is contained in:
Mark Gurevich 2023-03-13 15:00:03 -04:00
parent 27eb307a59
commit f9f79cbd72
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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