*** Settings ***
Documentation netconf-restperfclient Update performance test suite.
...
-... Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
+... Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
...
... This program and the accompanying materials are made available under the
... terms of the Eclipse Public License v1.0 which accompanies this distribution,
Suite Setup Setup_Everything
Suite Teardown Teardown_Everything
Test Setup SetupUtils.Setup_Test_With_Logging_And_Fast_Failing
-Test Teardown FailFast.Start_Failing_Fast_If_This_Failed
+Test Teardown SetupUtils.Teardown_Test_Show_Bugs_And_Start_Fast_Failing_If_Test_Failed
Library Collections
Library RequestsLibrary
Library OperatingSystem
Library String
Library SSHLibrary timeout=10s
-Resource ${CURDIR}/../../../libraries/FailFast.robot
Resource ${CURDIR}/../../../libraries/KarafKeywords.robot
Resource ${CURDIR}/../../../libraries/NetconfKeywords.robot
Resource ${CURDIR}/../../../libraries/NetconfViaRestconf.robot
${options}= BuiltIn.Set_Variable ${options} --destination /restconf/config/network-topology:network-topology/topology/topology-netconf/node/${DEVICE_NAME}/yang-ext:mount/car:cars
${options}= BuiltIn.Set_Variable ${options} --edit-content request1.json
${options}= BuiltIn.Set_Variable ${options} --auth ${ODL_RESTCONF_USER} ${ODL_RESTCONF_PASSWORD}
- ${command} BuiltIn.Set_Variable java -Xmx1G -XX:MaxPermSize=256M -jar ${filename} ${options}
+ ${command}= NexusKeywords.Compose_Full_Java_Command -Xmx1G -XX:MaxPermSize=256M -jar ${filename} ${options}
BuiltIn.Log Running restperfclient: ${command}
${restperfclientlog}= Utils.Get_Log_File_Name restperfclient
BuiltIn.Set_Suite_Variable ${restperfclientlog} ${restperfclientlog}
... we don't want to test performance of ODL rejecting our requests.
${result}= SSHLibrary.Execute_Command grep "Request failed" ${restperfclientlog}
BuiltIn.Should_Be_Equal '${result}' ''
+ ${result}= SSHLibrary.Execute_Command grep "Status code" ${restperfclientlog}
+ BuiltIn.Should_Be_Equal '${result}' ''
Deconfigure_Device_From_Netconf
[Documentation] Deconfigure the testtool device on Netconf connector.
[Documentation] Setup everything needed for the test cases.
# Setup resources used by the suite.
SetupUtils.Setup_Utils_For_Setup_And_Teardown
- RequestsLibrary.Create_Session operational http://${ODL_SYSTEM_IP}:${RESTCONFPORT}${OPERATIONAL_API} auth=${AUTH}
NetconfKeywords.Setup_Netconf_Keywords
# Connect to the tools system (rest-perf-client)
${restperfclient}= SSHKeywords.Open_Connection_To_Tools_System
BuiltIn.Set_Suite_Variable ${restperfclient} ${restperfclient}
- # Initialize artifact deployment infrastructure.
- NexusKeywords.Initialize_Artifact_Deployment_And_Usage
${testtool}= SSHLibrary.Get Connection
BuiltIn.Set_Suite_Variable ${testtool} ${testtool.index}