summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
59849a2)
Change-Id: I45d02ee9e4b9561c6382fcd90e7dd0bc5b7d48ba
Signed-off-by: Ivan Hrasko <ihrasko@cisco.com>
Setup SXP Environment
[Arguments] ${node_range}=2
[Documentation] Create session to Controller, node_range parameter specifies number of nodes to be created plus one
Setup SXP Environment
[Arguments] ${node_range}=2
[Documentation] Create session to Controller, node_range parameter specifies number of nodes to be created plus one
+ RequestsLibrary.Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} timeout=${DEFAULT_TIMEOUT_HTTP} max_retries=0
: FOR ${num} IN RANGE 1 ${node_range}
\ ${ip} = Sxp.Get Ip From Number ${num}
\ ${rnd_retry_time} = BuiltIn.Evaluate random.randint(1, 10) modules=random
: FOR ${num} IN RANGE 1 ${node_range}
\ ${ip} = Sxp.Get Ip From Number ${num}
\ ${rnd_retry_time} = BuiltIn.Evaluate random.randint(1, 10) modules=random
*** Keywords ***
Setup SXP Environment Local
[Documentation] Create session to Controller
*** Keywords ***
Setup SXP Environment Local
[Documentation] Create session to Controller
+ RequestsLibrary.Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} timeout=${DEFAULT_TIMEOUT_HTTP} max_retries=0
Add Node 127.0.0.1 ${EMPTY}
Add Node 127.0.0.2 ${EMPTY}
Add Node 127.0.0.3 CUSTOM
Add Node 127.0.0.1 ${EMPTY}
Add Node 127.0.0.2 ${EMPTY}
Add Node 127.0.0.3 CUSTOM
Setup SXP Environment Local
[Arguments] ${node_range}
[Documentation] Create session to Controller, copy keystores to ODL machines and setup topology for testing
Setup SXP Environment Local
[Arguments] ${node_range}
[Documentation] Create session to Controller, copy keystores to ODL machines and setup topology for testing
+ RequestsLibrary.Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} timeout=${DEFAULT_TIMEOUT_HTTP} max_retries=0
SSHKeywords.Open_Connection_To_ODL_System
${ODL_SYSTEM_JAVA_HOME} SSHLibrary.Execute_Command java -XshowSettings:properties -version 2>&1 | grep java.home | sed 's/.*= //'
: FOR ${node} IN RANGE 1 ${node_range}
SSHKeywords.Open_Connection_To_ODL_System
${ODL_SYSTEM_JAVA_HOME} SSHLibrary.Execute_Command java -XshowSettings:properties -version 2>&1 | grep java.home | sed 's/.*= //'
: FOR ${node} IN RANGE 1 ${node_range}
*** Settings ***
Documentation Test suite to verify binding origins configuration possibilities (CRUD)
*** Settings ***
Documentation Test suite to verify binding origins configuration possibilities (CRUD)
-Suite Setup RequestsLibrary.Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
-Suite Teardown RequestsLibrary.Delete All Sessions
+Suite Setup SxpLib.Setup SXP Environment 0
+Suite Teardown SxpLib.Clean SXP Environment 0
Test Setup SxpBindingOriginsLib.Revert To Default Binding Origins Configuration
Library RequestsLibrary
Resource ../../../libraries/SxpBindingOriginsLib.robot
Test Setup SxpBindingOriginsLib.Revert To Default Binding Origins Configuration
Library RequestsLibrary
Resource ../../../libraries/SxpBindingOriginsLib.robot
*** Settings ***
Documentation Test suite to verify binding origins checks are performed in master database
*** Settings ***
Documentation Test suite to verify binding origins checks are performed in master database
-Suite Setup Create Session And Node
-Suite Teardown Delete Node And Close Session
+Suite Setup SxpLib.Setup SXP Environment
+Suite Teardown SxpLib.Clean SXP Environment
Test Setup Clean Bindings
Library RequestsLibrary
Resource ../../../libraries/SxpLib.robot
Test Setup Clean Bindings
Library RequestsLibrary
Resource ../../../libraries/SxpLib.robot
Verify All Bindings Content 10 1.1.1.1/32 20 2.2.2.2/32
*** Keywords ***
Verify All Bindings Content 10 1.1.1.1/32 20 2.2.2.2/32
*** Keywords ***
-Create Session And Node
- RequestsLibrary.Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
- SxpLib.Setup SXP Environment
-
-Delete Node And Close Session
- SxpLib.Clean SXP Environment
- RequestsLibrary.Delete All Sessions
-
Clean Bindings
SxpLib.Clean Bindings scope=all
SxpLib.Clean Bindings domain=guest scope=all
Clean Bindings
SxpLib.Clean Bindings scope=all
SxpLib.Clean Bindings domain=guest scope=all