2 Documentation Test suite to test custom password per peer fuctionality
3 Suite Setup Setup SXP Environment Local
4 Suite Teardown Clean SXP Environment 4
6 Library RequestsLibrary
8 Library ../../../libraries/Sxp.py
9 Resource ../../../libraries/SxpLib.robot
15 [Documentation] Test of custom passwords on version1 connections
17 Test Mode version1 listener speaker
19 Test Mode version1 speaker listener
22 [Documentation] Test of custom passwords on version2 connections
24 Test Mode version2 listener speaker
26 Test Mode version2 speaker listener
29 [Documentation] Test of custom passwords on version3 connections
31 Test Mode version3 listener speaker
33 Test Mode version3 speaker listener
36 [Documentation] Test of custom passwords on version4 connections
38 Test Mode version4 speaker listener
40 Test Mode version4 listener speaker
42 Test Mode version4 both both
45 Setup SXP Environment Local
46 [Documentation] Create session to Controller
47 RequestsLibrary.Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} timeout=${DEFAULT_TIMEOUT_HTTP} max_retries=0
48 Add Node 127.0.0.1 ${EMPTY}
49 Add Node 127.0.0.2 ${EMPTY}
50 Add Node 127.0.0.3 CUSTOM
53 [Arguments] ${version} ${mode_local} ${mode_remote}
54 [Documentation] Setup connection Speaker => Listener / Listener => Speaker / Both <=> Both for specific versions
55 Add Connection ${version} ${mode_local} 127.0.0.3 64999 127.0.0.1 CUSTOM
56 Add Connection ${version} ${mode_remote} 127.0.0.1 64999 127.0.0.3 ${EMPTY}
57 Wait Until Keyword Succeeds 15 1 Verify Connection ${version} ${mode_local} 127.0.0.3
59 Wait Until Keyword Succeeds 15 1 Verify Connection ${version} ${mode_remote} 127.0.0.1
61 Add Connection ${version} ${mode_local} 127.0.0.2 64999 127.0.0.1 ${EMPTY}
62 Add Connection ${version} ${mode_remote} 127.0.0.1 64999 127.0.0.2 ${EMPTY}
63 Wait Until Keyword Succeeds 15 1 Verify Connection ${version} ${mode_local} 127.0.0.2
65 Wait Until Keyword Succeeds 15 1 Verify Connection ${version} ${mode_remote} 127.0.0.1
67 Add Connection ${version} ${mode_local} 127.0.0.3 64999 127.0.0.2 CUSTOM_2
68 Add Connection ${version} ${mode_remote} 127.0.0.2 64999 127.0.0.3 CUSTOM_2
69 Wait Until Keyword Succeeds 15 1 Verify Connection ${version} ${mode_local} 127.0.0.3
71 Wait Until Keyword Succeeds 15 1 Verify Connection ${version} ${mode_remote} 127.0.0.2
75 Clean Connections 127.0.0.1
76 Clean Connections 127.0.0.2
77 Clean Connections 127.0.0.3