From: Vratko Polak Date: Wed, 7 Oct 2015 14:55:32 +0000 (+0200) Subject: Tidy up merged Robot files. X-Git-Tag: release/lithium-sr2~1 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=integration%2Ftest.git;a=commitdiff_plain;h=8eb3825a167dbf41c2e2cd455b3962a59efe91f4 Tidy up merged Robot files. Change-Id: Iae3dd94ca027ae996fd15fa7985bafe700731451 Signed-off-by: Vratko Polak --- diff --git a/csit/libraries/AAAKeywords.robot b/csit/libraries/AAAKeywords.robot index a6737e756b..dcc5f8ca80 100644 --- a/csit/libraries/AAAKeywords.robot +++ b/csit/libraries/AAAKeywords.robot @@ -23,10 +23,10 @@ Create Auth Data [Documentation] returns a string in the direct authentacation format (e.g., grant_type=password&username=admin&password=admin). ... It can also be passed scope, client_id and client_secret arguments for the case of client specific authorization ${data}= Set Variable grant_type=password&username=${user}&password=${password}&scope=${scope} - ${data}= Run Keyword If "${client_id}" != "${EMPTY}" Set Variable ${data}&client_id=${client_id} - ... ELSE Set Variable ${data} - ${data}= Run Keyword If "${client_secret}" != "${EMPTY}" Set Variable ${data}&client_secret=${client_secret} - ... ELSE Set Variable ${data} + ${data}= Run Keyword If "${client_id}" != "${EMPTY}" Set Variable ${data}&client_id=${client_id} ELSE Set Variable + ... ${data} + ${data}= Run Keyword If "${client_secret}" != "${EMPTY}" Set Variable ${data}&client_secret=${client_secret} ELSE Set Variable + ... ${data} [Return] ${data} Disable Authentication On Controller diff --git a/csit/libraries/LISPFlowMapping.robot b/csit/libraries/LISPFlowMapping.robot index 6f15ad4857..b721f956bf 100644 --- a/csit/libraries/LISPFlowMapping.robot +++ b/csit/libraries/LISPFlowMapping.robot @@ -10,8 +10,8 @@ ${ODL_VERSION} Be *** Keywords *** Check Mapping Removal [Arguments] ${json} - Run Keyword If "${ODL_VERSION}" == "Li" Check Mapping Removal Lithium ${json} - ... ELSE Post Log Check ${LFM_RPC_API}:get-mapping ${json} 404 + Run Keyword If "${ODL_VERSION}" == "Li" Check Mapping Removal Lithium ${json} ELSE Post Log Check ${LFM_RPC_API}:get-mapping + ... ${json} 404 Check Mapping Removal Lithium [Arguments] ${json} diff --git a/csit/libraries/SwitchUtils.robot b/csit/libraries/SwitchUtils.robot index 4058ff0549..e863f4c457 100644 --- a/csit/libraries/SwitchUtils.robot +++ b/csit/libraries/SwitchUtils.robot @@ -92,8 +92,8 @@ Open Connection Wrapper Run Keyword If "${switch.mgmt_protocol}" == "ssh" Call Method ${switch} set_mgmt_user ${MININET_USER} ${connection_index}= Run Keyword If "${switch.mgmt_protocol}" == "ssh" SSHLibrary.Open Connection ${switch.mgmt_ip} prompt=${switch.mgmt_prompt} timeout=30s Run Keyword If "${switch.mgmt_protocol}" == "ssh" Login With Public Key ${switch.mgmt_user} ${switch.ssh_key} any - ${connection_index}= Run Keyword If "${switch.mgmt_protocol}" == "telnet" Telnet.Open Connection ${switch.mgmt_ip} - ... ELSE Set Variable ${connection_index} + ${connection_index}= Run Keyword If "${switch.mgmt_protocol}" == "telnet" Telnet.Open Connection ${switch.mgmt_ip} ELSE Set Variable + ... ${connection_index} [Return] ${connection_index} Configure Connection Index And Prompt Wrapper @@ -124,8 +124,8 @@ Execute Command Wrapper [Documentation] Wraps the Execute Command keyword so that depending on the switch.mgmt_protocol the right ... library (Telnet or SSHLibrary) is used. ${output}= Run Keyword If "${switch.mgmt_protocol}" == "ssh" SSHLibrary.Execute Command ${cmd} - ${output}= Run Keyword If "${switch.mgmt_protocol}" == "telnet" Telnet.Execute Command ${cmd} - ... ELSE Set Variable ${output} + ${output}= Run Keyword If "${switch.mgmt_protocol}" == "telnet" Telnet.Execute Command ${cmd} ELSE Set Variable + ... ${output} [Return] ${output} Connect To Switch diff --git a/csit/libraries/TsdrUtils.robot b/csit/libraries/TsdrUtils.robot index f876c43268..09d0d509b3 100644 --- a/csit/libraries/TsdrUtils.robot +++ b/csit/libraries/TsdrUtils.robot @@ -78,10 +78,9 @@ Prepare HBase Filter [Documentation] Prepare the Hbase Filter from Tsdr List output ${left_str}= Remove Space on String ${left_str} ${right_str}= Remove Space on String ${right_str} 1 - ${x}= Run Keyword If '${left_str}' == 'MetricID' Catenate ${SPACE} _ - ... ELSE IF '${left_str}' == 'ObjectKeys' Catenate ${right_str} _ - ... ELSE IF '${left_str}' == 'TimeStamp' Get Epoch Time ${right_str} - ... ELSE Catenate ${SPACE} + ${x}= Run Keyword If '${left_str}' == 'MetricID' Catenate ${SPACE} _ ELSE IF + ... '${left_str}' == 'ObjectKeys' Catenate ${right_str} _ ELSE IF '${left_str}' == 'TimeStamp' + ... Get Epoch Time ${right_str} ELSE Catenate ${SPACE} [Return] ${x} Create the Hbase table row diff --git a/csit/suites/lacp/Lacp_Feature_OF13/020__lacp_lag_resiliency.robot b/csit/suites/lacp/Lacp_Feature_OF13/020__lacp_lag_resiliency.robot index ac9f4b4139..259c9d1d3b 100644 --- a/csit/suites/lacp/Lacp_Feature_OF13/020__lacp_lag_resiliency.robot +++ b/csit/suites/lacp/Lacp_Feature_OF13/020__lacp_lag_resiliency.robot @@ -111,5 +111,5 @@ Verify Switch S1 Group Table ${result}= Get Lines Containing String ${group_output} output:${port-id1} Should Contain ${result} type=${group-type} Should Contain ${result} output:${port-id1} - Run Keyword If "${port-id2-state}" == "up" Should Contain ${result} output:${port-id2} - ... ELSE Should not Contain ${result} output:${port-id2} + Run Keyword If "${port-id2-state}" == "up" Should Contain ${result} output:${port-id2} ELSE Should not Contain + ... ${result} output:${port-id2}