diff --git a/xCAT-test/autotest/bundle/restapi.bundle b/xCAT-test/autotest/bundle/restapi.bundle index 628559241..658c435f1 100644 --- a/xCAT-test/autotest/bundle/restapi.bundle +++ b/xCAT-test/autotest/bundle/restapi.bundle @@ -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 diff --git a/xCAT-test/autotest/testcase/restapi/cases0 b/xCAT-test/autotest/testcase/restapi/cases0 index 8afc981a3..d696800b8 100644 --- a/xCAT-test/autotest/testcase/restapi/cases0 +++ b/xCAT-test/autotest/testcase/restapi/cases0 @@ -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