X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fcontroller%2FOneNode_Datastore%2F010_crud_mdsal_perf.robot;h=0bbf6075f14779343ba7dc64d4ec6dd507e51504;hb=0fd758d357b9eca7112930eb9182560fe7e2fa1d;hp=06d841b1fa291acacd194412f73afb3d21077102;hpb=fcfb0a19214cb75fa112670a7e4a6de5242c8d83;p=integration%2Ftest.git diff --git a/csit/suites/controller/OneNode_Datastore/010_crud_mdsal_perf.robot b/csit/suites/controller/OneNode_Datastore/010_crud_mdsal_perf.robot index 06d841b1fa..0bbf6075f1 100644 --- a/csit/suites/controller/OneNode_Datastore/010_crud_mdsal_perf.robot +++ b/csit/suites/controller/OneNode_Datastore/010_crud_mdsal_perf.robot @@ -29,7 +29,7 @@ ${ITEM_COUNT} ${10000} ${ITEM_BATCH} ${10000} ${PROCEDURE_TIMEOUT} 5m ${addcarcmd} python cluster_rest_script.py --host ${ODL_SYSTEM_IP} --port ${RESTCONFPORT} add --itemtype car --itemcount ${ITEM_COUNT} --ipr ${ITEM_BATCH} -${addpeoplecmd} python cluster_rest_script.py --host ${ODL_SYSTEM_IP} --port ${RESTCONFPORT} add --itemtype people --itemcount ${ITEM_COUNT} --ipr ${ITEM_BATCH} +${addpeoplecmd} python cluster_rest_script.py --host ${ODL_SYSTEM_IP} --port ${RESTCONFPORT} add-rpc --itemtype people --itemcount ${ITEM_COUNT} --threads 5 ${purchasecmd} python cluster_rest_script.py --host ${ODL_SYSTEM_IP} --port ${RESTCONFPORT} add-rpc --itemtype car-people --itemcount ${ITEM_COUNT} --threads 5 ${carurl} /restconf/config/car:cars ${peopleurl} /restconf/config/people:people @@ -73,10 +73,7 @@ Verify Purchases [Documentation] Store logs and verify result Stop Tool Store File To Workspace cluster_rest_script.log cluster_rest_script_purchase_cars.log - ${rsp}= RequestsLibrary.Get Request session ${carpeopleurl} headers=${ACCEPT_XML} - ${count}= XML.Get Element Count ${rsp.content} xpath=car-person - Should Be Equal As Numbers ${count} ${ITEM_COUNT} - [Teardown] Report_Failure_Due_To_Bug 4220 + Wait Until Keyword Succeeds ${PROCEDURE_TIMEOUT} 1 Purchase Is Completed ${ITEM_COUNT} Delete Cars [Documentation] Remove cars from the datastore @@ -129,6 +126,13 @@ Wait_Until_Tool_Finish [Documentation] Wait ${timeout} for the tool exit. BuiltIn.Wait Until Keyword Succeeds ${timeout} 1s SSHLibrary.Read Until Prompt +Purchase Is Completed + [Arguments] ${item_count} + [Documentation] Check purchase of ${item_count} is completed. + ${rsp}= RequestsLibrary.Get Request session ${carpeopleurl} headers=${ACCEPT_XML} + ${count}= XML.Get Element Count ${rsp.content} xpath=car-person + Should Be Equal As Numbers ${count} ${item_count} + Stop_Tool [Documentation] Stop the tool if still running. Utils.Write_Bare_Ctrl_C