2 Documentation Test suite to test custom password per peer fuctionality
4 Library RequestsLibrary
6 Library ../../../libraries/Sxp.py
7 Resource ../../../libraries/SxpLib.robot
9 Suite Setup Setup SXP Environment Local
10 Suite Teardown Clean SXP Environment 3
11 Test Setup Clean Nodes
16 [Documentation] Test of custom passwords on version1 connections
18 Test Mode version1 listener speaker
20 Test Mode version1 speaker listener
23 [Documentation] Test of custom passwords on version2 connections
25 Test Mode version2 listener speaker
27 Test Mode version2 speaker listener
30 [Documentation] Test of custom passwords on version3 connections
32 Test Mode version3 listener speaker
34 Test Mode version3 speaker listener
37 [Documentation] Test of custom passwords on version4 connections
39 Test Mode version4 speaker listener
41 Test Mode version4 listener speaker
43 Test Mode version4 both both
47 Setup SXP Environment Local
48 [Documentation] Create session to Controller
49 RequestsLibrary.Create Session
51 ... http://${ODL_SYSTEM_IP}:${RESTCONFPORT}
53 ... timeout=${DEFAULT_TIMEOUT_HTTP}
55 Add Node 127.0.0.1 ${EMPTY}
56 Add Node 127.0.0.2 ${EMPTY}
57 Add Node 127.0.0.3 CUSTOM
60 [Documentation] Setup connection Speaker => Listener / Listener => Speaker / Both <=> Both for specific versions
61 [Arguments] ${version} ${mode_local} ${mode_remote}
62 Add Connection ${version} ${mode_local} 127.0.0.3 64999 127.0.0.1 CUSTOM
63 Add Connection ${version} ${mode_remote} 127.0.0.1 64999 127.0.0.3 ${EMPTY}
64 Wait Until Keyword Succeeds 120x 1s Verify Connection ${version} ${mode_local} 127.0.0.3
66 Wait Until Keyword Succeeds 120x 1s Verify Connection ${version} ${mode_remote} 127.0.0.1
68 Add Connection ${version} ${mode_local} 127.0.0.2 64999 127.0.0.1 ${EMPTY}
69 Add Connection ${version} ${mode_remote} 127.0.0.1 64999 127.0.0.2 ${EMPTY}
70 Wait Until Keyword Succeeds 120x 1s Verify Connection ${version} ${mode_local} 127.0.0.2
72 Wait Until Keyword Succeeds 120x 1s Verify Connection ${version} ${mode_remote} 127.0.0.1
74 Add Connection ${version} ${mode_local} 127.0.0.3 64999 127.0.0.2 CUSTOM_2
75 Add Connection ${version} ${mode_remote} 127.0.0.2 64999 127.0.0.3 CUSTOM_2
76 Wait Until Keyword Succeeds 120x 1s Verify Connection ${version} ${mode_local} 127.0.0.3
78 Wait Until Keyword Succeeds 120x 1s Verify Connection ${version} ${mode_remote} 127.0.0.2
82 Clean Connections 127.0.0.1
83 Clean Connections 127.0.0.2
84 Clean Connections 127.0.0.3