Update Robot Framework format - step 3
[integration/test.git] / csit / suites / bgpcep / bgpfunct / 070_bgp_functional_l3vpn_mcast.robot
index 6a878173f537eab787fd93c530929df01eecc45c..6dd5ad990ef65378a8f91f90c8ef0dd32ae1a253 100644 (file)
@@ -1,49 +1,65 @@
 *** Settings ***
-Documentation     Functional test for bgp - l3vpn-mutlicast
+Documentation       Functional test for bgp - l3vpn-mutlicast
 ...
-...               Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
+...                 Copyright (c) 2018 AT&T Intellectual Property. 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 distbmution,
-...               and is available at http://www.eclipse.org/legal/epl-v10.html
+...                 This program and the accompanying materials are made available under the
+...                 terms of the Eclipse Public License v1.0 which accompanies this distbmution,
+...                 and is available at http://www.eclipse.org/legal/epl-v10.html
 ...
-...               This suite tests advertising l3vpn_mcast routes to odl. For advertising play.py is used,
-...               and particular files are stored as *.hex files.
-...               There are L3vpn-ipv4-multicast routes and L3vpn-ipv6-multicast routes tested.
-Suite Setup       Start_Suite
-Suite Teardown    Stop_Suite
-Test Setup        SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
-Library           RequestsLibrary
-Library           SSHLibrary
-Library           String
-Library           ../../../libraries/BgpRpcClient.py    ${TOOLS_SYSTEM_IP}
-Resource          ../../../libraries/BGPcliKeywords.robot
-Resource          ../../../libraries/BGPSpeaker.robot
-Resource          ../../../libraries/BgpOperations.robot
-Resource          ../../../libraries/SetupUtils.robot
-Resource          ../../../libraries/SSHKeywords.robot
-Resource          ../../../libraries/TemplatedRequests.robot
-Resource          ../../../variables/Variables.robot
+...                 This suite tests advertising l3vpn_mcast routes to odl. For advertising play.py is used,
+...                 and particular files are stored as *.hex files.
+...                 There are L3vpn-ipv4-multicast routes and L3vpn-ipv6-multicast routes tested.
+
+Library             RequestsLibrary
+Library             SSHLibrary
+Library             String
+Library             ../../../libraries/BgpRpcClient.py    ${TOOLS_SYSTEM_IP}
+Resource            ../../../libraries/BGPcliKeywords.robot
+Resource            ../../../libraries/BGPSpeaker.robot
+Resource            ../../../libraries/BgpOperations.robot
+Resource            ../../../libraries/SetupUtils.robot
+Resource            ../../../libraries/SSHKeywords.robot
+Resource            ../../../libraries/TemplatedRequests.robot
+Resource            ../../../variables/Variables.robot
+
+Suite Setup         Start_Suite
+Suite Teardown      Stop_Suite
+Test Setup          SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
+
 
 *** Variables ***
-${HOLDTIME}       180
-${CONFIG_SESSION}    config-session
-${L3VPN_MCAST_DIR}    ${CURDIR}/../../../variables/bgpfunctional/l3vpn_mcast
-${PLAY_SCRIPT}    ${CURDIR}/../../../../tools/fastbgp/play.py
-${RIB_NAME}       example-bgp-rib
-&{L3VPN_MCAST_APP_PEER}    IP=${ODL_SYSTEM_IP}    BGP_RIB=${RIB_NAME}
-&{L3VPN_MCAST_ODL_CONFIG}    IP=${TOOLS_SYSTEM_IP}    HOLDTIME=${HOLDTIME}    PEER_PORT=${BGP_TOOL_PORT}    INITIATE=false    BGP_RIB=${RIB_NAME}    PASSIVE_MODE=true
+${HOLDTIME}                     180
+${CONFIG_SESSION}               config-session
+${L3VPN_MCAST_DIR}              ${CURDIR}/../../../variables/bgpfunctional/l3vpn_mcast
+${PLAY_SCRIPT}                  ${CURDIR}/../../../../tools/fastbgp/play.py
+${RIB_NAME}                     example-bgp-rib
+&{L3VPN_MCAST_APP_PEER}         IP=${ODL_SYSTEM_IP}    BGP_RIB=${RIB_NAME}
+&{L3VPN_MCAST_ODL_CONFIG}
+...                             IP=${TOOLS_SYSTEM_IP}
+...                             HOLDTIME=${HOLDTIME}
+...                             PEER_PORT=${BGP_TOOL_PORT}
+...                             INITIATE=false
+...                             BGP_RIB=${RIB_NAME}
+...                             PASSIVE_MODE=true
+
 
 *** Test Cases ***
 Configure_App_Peer
     [Documentation]    Configures bgp application peer.
     [Setup]    SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
-    TemplatedRequests.Put_As_Xml_Templated    ${L3VPN_MCAST_DIR}/app_peer    mapping=${L3VPN_MCAST_APP_PEER}    session=${CONFIG_SESSION}
+    TemplatedRequests.Put_As_Xml_Templated
+    ...    ${L3VPN_MCAST_DIR}/app_peer
+    ...    mapping=${L3VPN_MCAST_APP_PEER}
+    ...    session=${CONFIG_SESSION}
 
 Reconfigure_ODL_To_Accept_Connection
     [Documentation]    Configures BGP peer module with initiate-connection set to false.
     [Setup]    SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
-    TemplatedRequests.Put_As_Xml_Templated    ${L3VPN_MCAST_DIR}/bgp_peer    mapping=${L3VPN_MCAST_ODL_CONFIG}    session=${CONFIG_SESSION}
+    TemplatedRequests.Put_As_Xml_Templated
+    ...    ${L3VPN_MCAST_DIR}/bgp_peer
+    ...    mapping=${L3VPN_MCAST_ODL_CONFIG}
+    ...    session=${CONFIG_SESSION}
 
 Start_Bgp_Peer
     [Documentation]    Start Python speaker to connect to ODL. We need to do WUKS until odl really starts to accept incomming bgp connection. The failure happens if the incomming connection comes too quickly after configuring the peer in the previous test case.
@@ -75,18 +91,28 @@ Kill_Talking_BGP_Speaker
 Delete_Bgp_Peer_Configuration
     [Documentation]    Revert the BGP configuration to the original state: without any configured peers.
     [Setup]    SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
-    TemplatedRequests.Delete_Templated    ${L3VPN_MCAST_DIR}/bgp_peer    mapping=${L3VPN_MCAST_ODL_CONFIG}    session=${CONFIG_SESSION}
+    TemplatedRequests.Delete_Templated
+    ...    ${L3VPN_MCAST_DIR}/bgp_peer
+    ...    mapping=${L3VPN_MCAST_ODL_CONFIG}
+    ...    session=${CONFIG_SESSION}
 
 Deconfigure_App_Peer
     [Documentation]    Revert the BGP configuration to the original state: without application peer
     [Setup]    SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
-    TemplatedRequests.Delete_Templated    ${L3VPN_MCAST_DIR}/app_peer    mapping=${L3VPN_MCAST_APP_PEER}    session=${CONFIG_SESSION}
+    TemplatedRequests.Delete_Templated
+    ...    ${L3VPN_MCAST_DIR}/app_peer
+    ...    mapping=${L3VPN_MCAST_APP_PEER}
+    ...    session=${CONFIG_SESSION}
+
 
 *** Keywords ***
 Start_Suite
     [Documentation]    Initialize SetupUtils. Suite setup keyword.
     SetupUtils.Setup_Utils_For_Setup_And_Teardown
-    ${mininet_conn_id} =    SSHLibrary.Open Connection    ${TOOLS_SYSTEM_IP}    prompt=${DEFAULT_LINUX_PROMPT}    timeout=6s
+    ${mininet_conn_id} =    SSHLibrary.Open Connection
+    ...    ${TOOLS_SYSTEM_IP}
+    ...    prompt=${DEFAULT_LINUX_PROMPT}
+    ...    timeout=6s
     Builtin.Set Suite Variable    ${mininet_conn_id}
     SSHKeywords.Flexible Mininet Login    ${TOOLS_SYSTEM_USER}
     RequestsLibrary.Create Session    ${CONFIG_SESSION}    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}
@@ -100,5 +126,6 @@ Stop_Suite
 
 Start_Bgp_Peer
     [Documentation]    Starts bgp peer and verifies that the peer runs.
-    BGPSpeaker.Start_BGP_Speaker    --amount 0 --myip=${TOOLS_SYSTEM_IP} --myport=${BGP_TOOL_PORT} --peerip=${ODL_SYSTEM_IP} --peerport=${ODL_BGP_PORT} --debug --l3vpn_mcast --wfr 1
+    BGPSpeaker.Start_BGP_Speaker
+    ...    --amount 0 --myip=${TOOLS_SYSTEM_IP} --myport=${BGP_TOOL_PORT} --peerip=${ODL_SYSTEM_IP} --peerport=${ODL_BGP_PORT} --debug --l3vpn_mcast --wfr 1
     BGPcliKeywords.Read_And_Fail_If_Prompt_Is_Seen