${REST_VIEW_CHANNEL} /restconf/operations/usc-channel:view-channel
${REST_ADD_CHANNEL} /restconf/operations/usc-channel:add-channel
${REST_REMOVE_CHANNEL} /restconf/operations/usc-channel:remove-channel
+${REST_REMOVE_SESSION} /restconf/operations/usc-channel:remove-session
${REST_SEND_MESSAGE} /restconf/operations/usc-channel:send-message
${NAV_USC_TOOLS} cd ~/usc-tools
${CLONE_USC_TOOLS} [ -f ~/usc-tools/UscAgent.jar ] && echo "The usc-tools does exist, done." || git clone https://github.com/victorxu99/usc-tools.git ~/usc-tools
[Documentation] Download UscAgent and EchoServer before any system
... is run.
Log Download tools begin ...
- Run Command On Remote System ${TOOLS_SYSTEM_IP} ${CLONE_USC_TOOLS} user=${TOOLS_SYSTEM_USER} password=${TOOLS_SYSTEM_PASSWORD} prompt_timeout=30s
+ Run Command On Remote System ${TOOLS_SYSTEM_IP} ${CLONE_USC_TOOLS} prompt_timeout=30s
Log Download tools ended.
Start TCP
Remove Channel
[Documentation] Remove the channel
- ${content} Create Dictionary hostname=${TOOLS_SYSTEM_IP} port=${ECHO_SERVER_PORT} tcp=true
+ ${content} Create Dictionary hostname=${TOOLS_SYSTEM_IP} tcp=true
${channel} Create Dictionary channel=${content}
${input} Create Dictionary input=${channel}
${data} json.dumps ${input}
Should Contain ${resp.content} "bytes-out":${totalLen}
Should Contain ${resp.content} "bytes-in":${totalLen}
-Remove Channel
+Remove Sessions
[Documentation] Remove the channels
: FOR ${port_index} IN @{LIST_ECHO_SERVER_PORT}
\ ${content} Create Dictionary hostname=${TOOLS_SYSTEM_IP} port=${port_index} tcp=true
\ ${channel} Create Dictionary channel=${content}
\ ${input} Create Dictionary input=${channel}
\ ${data} json.dumps ${input}
- \ ${resp} Post Request session ${REST_REMOVE_CHANNEL} data=${data}
+ \ ${resp} Post Request session ${REST_REMOVE_SESSION} data=${data}
\ Log ${resp.content}
\ Should Be Equal As Strings ${resp.status_code} 200
\ Should Contain ${resp.content} Succeed to remove
+Remove Channel
+ [Documentation] Remove the channels
+ ${content} Create Dictionary hostname=${TOOLS_SYSTEM_IP} tcp=true
+ ${channel} Create Dictionary channel=${content}
+ ${input} Create Dictionary input=${channel}
+ ${data} json.dumps ${input}
+ ${resp} Post Request session ${REST_REMOVE_CHANNEL} data=${data}
+ Log ${resp.content}
+ Should Be Equal As Strings ${resp.status_code} 200
+ Should Contain ${resp.content} Succeed to remove
+
+Check Channel
+ [Documentation] Check if the channels are correct
+ ${topo} Create Dictionary topology-id=usc
+ ${input} Create Dictionary input=${topo}
+ ${data} json.dumps ${input}
+ ${resp} Post Request session ${REST_VIEW_CHANNEL} data=${data}
+ Log ${resp.content}
+ Should Be Equal As Strings ${resp.status_code} 200
+ Should Contain ${resp.content} "topology"
+
*** Keywords ***
Send Now
[Arguments] ${body}
Remove Channel
[Documentation] Remove the channel
- ${content} Create Dictionary hostname=${TOOLS_SYSTEM_IP} port=${ECHO_SERVER_PORT} tcp=true
+ ${content} Create Dictionary hostname=${TOOLS_SYSTEM_IP} tcp=true
${channel} Create Dictionary channel=${content}
${input} Create Dictionary input=${channel}
${data} json.dumps ${input}
Remove Channel
[Documentation] Remove the channel
- ${content} Create Dictionary hostname=${TOOLS_SYSTEM_IP} port=${ECHO_SERVER_PORT} tcp=false
+ ${content} Create Dictionary hostname=${TOOLS_SYSTEM_IP} tcp=false
${channel} Create Dictionary channel=${content}
${input} Create Dictionary input=${channel}
${data} json.dumps ${input}
Should Contain ${resp.content} "bytes-out":${totalLen}
Should Contain ${resp.content} "bytes-in":${totalLen}
-Remove Channel
+Remove Sessions
[Documentation] Remove the channels
: FOR ${port_index} IN @{LIST_ECHO_SERVER_PORT}
\ ${content} Create Dictionary hostname=${TOOLS_SYSTEM_IP} port=${port_index} tcp=false
\ ${channel} Create Dictionary channel=${content}
\ ${input} Create Dictionary input=${channel}
\ ${data} json.dumps ${input}
- \ ${resp} Post Request session ${REST_REMOVE_CHANNEL} data=${data}
+ \ ${resp} Post Request session ${REST_REMOVE_SESSION} data=${data}
\ Log ${resp.content}
\ Should Be Equal As Strings ${resp.status_code} 200
\ Should Contain ${resp.content} Succeed to remove
+Remove Channel
+ [Documentation] Remove the channels
+ ${content} Create Dictionary hostname=${TOOLS_SYSTEM_IP} tcp=false
+ ${channel} Create Dictionary channel=${content}
+ ${input} Create Dictionary input=${channel}
+ ${data} json.dumps ${input}
+ ${resp} Post Request session ${REST_REMOVE_CHANNEL} data=${data}
+ Log ${resp.content}
+ Should Be Equal As Strings ${resp.status_code} 200
+ Should Contain ${resp.content} Succeed to remove
+
+Check Channel
+ [Documentation] Check if the channels are correct
+ ${topo} Create Dictionary topology-id=usc
+ ${input} Create Dictionary input=${topo}
+ ${data} json.dumps ${input}
+ ${resp} Post Request session ${REST_VIEW_CHANNEL} data=${data}
+ Log ${resp.content}
+ Should Be Equal As Strings ${resp.status_code} 200
+ Should Contain ${resp.content} "topology"
+
*** Keywords ***
Send Now
[Arguments] ${body}
Remove Channel
[Documentation] Remove the channel
- ${content} Create Dictionary hostname=${TOOLS_SYSTEM_IP} port=${ECHO_SERVER_PORT} tcp=false
+ ${content} Create Dictionary hostname=${TOOLS_SYSTEM_IP} tcp=false
${channel} Create Dictionary channel=${content}
${input} Create Dictionary input=${channel}
${data} json.dumps ${input}
--- /dev/null
+# Place the suites in run order:
+integration/test/csit/suites/usc/udp