From: Jozef Behran Date: Mon, 11 Jan 2016 12:37:31 +0000 (+0100) Subject: Switch to MD-SAL version of test tool data store X-Git-Tag: release/beryllium-sr1~230 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=integration%2Ftest.git;a=commitdiff_plain;h=c3c822093b7f5bd139a3a75de05f50b9ee356375 Switch to MD-SAL version of test tool data store The MD-SAL version of the test tool data store offers better compliance with the Netconf protocol so use it by default. An argument can be used to switch it off for tests where performance is needed and correctness is not such as scaling and performance test suites. The CRUD suite also needed patching because it was designed to check for an attribute in the data which is actually not supposed to be there and was just a test-tool simple datastore implementation quirk. The scaling suites were also updated to tell the testtool to use the simple datastore. These suites need the speed more than the correctness as they don't do any data checking. Change-Id: I8f1d9e18e838169d6249c0998954ba0e0cf9e4fc Signed-off-by: Jozef Behran --- diff --git a/csit/libraries/NetconfKeywords.robot b/csit/libraries/NetconfKeywords.robot index 5c1237084f..d9a838c237 100644 --- a/csit/libraries/NetconfKeywords.robot +++ b/csit/libraries/NetconfKeywords.robot @@ -132,7 +132,7 @@ NetconfKeywords__Wait_Device_Is_Up_And_Running BuiltIn.Wait_Until_Keyword_Succeeds ${TESTTOOL_DEVICE_TIMEOUT} 1s Check_Device_Up_And_Running ${number} Install_And_Start_Testtool - [Arguments] ${device-count}=10 ${debug}=true ${schemas}=none ${tool_options}=${EMPTY} ${java_options}=${TESTTOOL_DEFAULT_JAVA_OPTIONS} + [Arguments] ${device-count}=10 ${debug}=true ${schemas}=none ${tool_options}=${EMPTY} ${java_options}=${TESTTOOL_DEFAULT_JAVA_OPTIONS} ${mdsal}=true [Documentation] Install and run testtool. Also arrange to collect its output into a log file. ... When the ${schemas} argument is set to 'none', it signifies that ... there are no additional schemas to be deployed, so the directory @@ -142,7 +142,7 @@ Install_And_Start_Testtool ${filename}= NexusKeywords.Deploy_Test_Tool netconf/netconf-testtool ${schemas_option}= NetconfKeywords__Deploy_Additional_Schemas ${schemas} # Start the testtool - ${command} BuiltIn.Set_Variable java ${java_options} -jar ${filename} ${tool_options} --device-count ${device-count} --debug ${debug} ${schemas_option} + ${command} BuiltIn.Set_Variable java ${java_options} -jar ${filename} ${tool_options} --device-count ${device-count} --debug ${debug} ${schemas_option} --md-sal ${mdsal} BuiltIn.Log Running testtool: ${command} SSHLibrary.Write ${command} >testtool.log 2>&1 # Store information needed by other keywords. diff --git a/csit/suites/netconf/CRUD/CRUD.robot b/csit/suites/netconf/CRUD/CRUD.robot index b0140ce696..8d4dcbad19 100644 --- a/csit/suites/netconf/CRUD/CRUD.robot +++ b/csit/suites/netconf/CRUD/CRUD.robot @@ -67,7 +67,7 @@ Create_Device_Data Check_Device_Data_Is_Created [Documentation] Get the device data and make sure it contains the created content. - Check_Config_Data Content + Check_Config_Data Content Modify_Device_Data [Documentation] Send a request to change the sample test data and check that the request went OK. @@ -76,7 +76,7 @@ Modify_Device_Data Check_Device_Data_Is_Modified [Documentation] Get the device data and make sure it contains the created content. - Check_Config_Data Modified Content + Check_Config_Data Modified Content Delete_Device_Data [Documentation] Send a request to delete the sample test data on the device and check that the request went OK. diff --git a/csit/suites/netconf/scale/getmulti.robot b/csit/suites/netconf/scale/getmulti.robot index ef63e4262a..c184713d07 100644 --- a/csit/suites/netconf/scale/getmulti.robot +++ b/csit/suites/netconf/scale/getmulti.robot @@ -34,7 +34,7 @@ ${base_port} 17830 *** Test Cases *** Start_Test_Tool [Documentation] Deploy and start test tool, then wait for all its devices to become online. - NetconfKeywords.Install_And_Start_Testtool device-count=${DEVICE_COUNT} + NetconfKeywords.Install_And_Start_Testtool device-count=${DEVICE_COUNT} mdsal=false Configure_Devices_On_Netconf [Documentation] Make requests to configure the testtool devices. diff --git a/csit/suites/netconf/scale/getsingle.robot b/csit/suites/netconf/scale/getsingle.robot index 8931c9bc2f..a239b500f1 100644 --- a/csit/suites/netconf/scale/getsingle.robot +++ b/csit/suites/netconf/scale/getsingle.robot @@ -28,7 +28,7 @@ ${DEVICE_COUNT} 500 *** Test Cases *** Start_Test_Tool [Documentation] Deploy and start test tool, then wait for all its devices to become online. - NetconfKeywords.Install_And_Start_Testtool device-count=${DEVICE_COUNT} + NetconfKeywords.Install_And_Start_Testtool device-count=${DEVICE_COUNT} mdsal=false Configure_Devices_Onto_Netconf [Documentation] Make requests to configure the testtool devices. @@ -61,8 +61,6 @@ Setup_Everything # Connect to the tools machine SSHLibrary.Open_Connection ${TOOLS_SYSTEM_IP} Utils.Flexible_Mininet_Login - # Deploy testtool on it - NetconfKeywords.Install_And_Start_Testtool device-count=${DEVICE_COUNT} Teardown_Everything [Documentation] Teardown the test infrastructure, perform cleanup and release all resources.