5 ${start} sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,1 --switch ovsk,protocols=OpenFlow13
9 [Documentation] Basic setup/cleanup work that can be done safely before any system
11 Log Start the test on the base edition
12 Open Connection ${MININET} prompt=> timeout=30s
13 Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
14 Write sudo ovs-vsctl set-manager ptcp:6644
21 [Documentation] Cleanup/Shutdown work that should be done at the completion of all
23 Log Stop the test on the base edition
29 Ensure All Nodes Are In Response
30 [Arguments] ${URI} ${node_list}
31 [Documentation] A GET is made to the supplied ${URI} and every item in the ${node_list}
32 ... is verified to exist in the repsonse. This keyword currently implies that it's node
33 ... specific but any list of strings can be given in ${node_list}. Refactoring of this
34 ... to make it more generic should be done. (see keyword "Check For Elements At URI")
35 : FOR ${node} IN @{node_list}
36 \ ${resp} Get session ${URI}
37 \ Should Be Equal As Strings ${resp.status_code} 200
38 \ Should Contain ${resp.content} ${node}
42 [Documentation] A GET on the /node/${node} API is made and specific flow stat
43 ... strings are checked for existence.
44 ${resp} Get session ${REST_CONTEXT}/node/${node}
45 Should Be Equal As Strings ${resp.status_code} 200
46 Should Contain ${resp.content} flow-capable-node-connector-statistics
47 Should Contain ${resp.content} flow-table-statistics
49 Check That Port Count Is Ok
50 [Arguments] ${node} ${count}
51 [Documentation] A GET on the /port API is made and the specified port ${count} is
52 ... verified. A more generic Keyword "Check For Specific Number Of Elements At URI"
53 ... also does this work and further consolidation should be done.
54 ${resp} Get session ${REST_CONTEXT}/${CONTAINER}/port
56 Should Be Equal As Strings ${resp.status_code} 200
57 Should Contain X Times ${resp.content} ${node} ${count}
59 Check For Specific Number Of Elements At URI
60 [Arguments] ${uri} ${element} ${expected_count}
61 [Documentation] A GET is made to the specified ${URI} and the specific count of a
62 ... given element is done (as supplied by ${element} and ${expected_count})
63 ${resp} Get session ${uri}
65 Should Be Equal As Strings ${resp.status_code} 200
66 Should Contain X Times ${resp.content} ${element} ${expected_count}
68 Check For Elements At URI
69 [Arguments] ${uri} ${elements}
70 [Documentation] A GET is made at the supplied ${URI} and every item in the list of
71 ... ${elements} is verified to exist in the response
72 ${resp} Get session ${uri}
74 Should Be Equal As Strings ${resp.status_code} 200
75 : FOR ${i} IN @{elements}
76 \ Should Contain ${resp.content} ${i}
78 Check For Elements Not At URI
79 [Arguments] ${uri} ${elements}
80 [Documentation] A GET is made at the supplied ${URI} and every item in the list of
81 ... ${elements} is verified to NOT exist in the response
82 ${resp} Get session ${uri}
84 Should Be Equal As Strings ${resp.status_code} 200
85 : FOR ${i} IN @{elements}
86 \ Should Not Contain ${resp.content} ${i}