2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-12 17:30:19 +00:00

Merge pull request #7364 from gurevichmark/restapi_attr_reset

Add restapi testcase to reset attribute
This commit is contained in:
besawn
2023-03-13 16:13:20 -04:00
committed by GitHub
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