Resource ../../../libraries/Utils.robot
*** Variables ***
-${REGISTER_TENANT_FILE} ${CURDIR}/../../../variables/nemo/register-user.json
-${STRUCTURE_HOST_FILE} ${CURDIR}/../../../variables/nemo/intent-node-host.json
-${STRUCTURE_INTENT_FILE} ${CURDIR}/../../../variables/nemo/structure-intent.json
-${PREDEFINE_ROLE_FILE} ${CURDIR}/../../../variables/nemo/predefine/role.json
-${PREDEFINE_NODE_FILE} ${CURDIR}/../../../variables/nemo/predefine/node.json
-${PREDEFINE_CONNECTION_FILE} ${CURDIR}/../../../variables/nemo/predefine/connection.json
+${REGISTER_TENANT_FILE} ${CURDIR}/../../../variables/nemo/register-user.json
+${STRUCTURE_HOST_FILE} ${CURDIR}/../../../variables/nemo/intent-node-host.json
+${STRUCTURE_INTENT_FILE} ${CURDIR}/../../../variables/nemo/structure-intent.json
+${PREDEFINE_ROLE_FILE} ${CURDIR}/../../../variables/nemo/predefine/role.json
+${PREDEFINE_NODE_FILE} ${CURDIR}/../../../variables/nemo/predefine/node.json
+${PREDEFINE_CONNECTION_FILE} ${CURDIR}/../../../variables/nemo/predefine/connection.json
*** Test Cases ***
Add Pre-define Role
[Documentation] Add Pre-define Role
[Tags] Put
- ${body} OperatingSystem.Get File ${PREDEFINE_ROLE_FILE}
- ${resp} RequestsLibrary.Put session ${PREDEFINE_ROLE_URI} data=${body} headers=${HEADERS_YANG_JSON}
+ ${body} OperatingSystem.Get File ${PREDEFINE_ROLE_FILE}
+ ${resp} RequestsLibrary.Put session ${PREDEFINE_ROLE_URI} data=${body} headers=${HEADERS_YANG_JSON}
Should Be Equal As Strings ${resp.status_code} 200
Add Pre-define Node
[Documentation] Add Pre-define Node
[Tags] Put
- ${body} OperatingSystem.Get File ${PREDEFINE_NODE_FILE}
- ${resp} RequestsLibrary.Put session ${PREDEFINE_NODE_URI} data=${body} headers=${HEADERS_YANG_JSON}
+ ${body} OperatingSystem.Get File ${PREDEFINE_NODE_FILE}
+ ${resp} RequestsLibrary.Put session ${PREDEFINE_NODE_URI} data=${body} headers=${HEADERS_YANG_JSON}
Should Be Equal As Strings ${resp.status_code} 200
Add Pre-define Connection
Register Tenant
[Documentation] Register Tenant
[Tags] Post
- ${body} OperatingSystem.Get File ${REGISTER_TENANT_FILE}
+ ${body} OperatingSystem.Get File ${REGISTER_TENANT_FILE}
${resp} RequestsLibrary.Post session ${REGISTER_TENANT_URI} data=${body} headers=${HEADERS_YANG_JSON}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Add Host Intent
- [Documentation] Add Host Intent
+ [Documentation] Add Host Intent
[Tags] Post
${body} OperatingSystem.Get File ${STRUCTURE_HOST_FILE}
${resp} RequestsLibrary.Post Request session ${STRUCTURE_INTENT_URI} data=${body} headers=${HEADERS_YANG_JSON}
Should Be Equal As Strings ${resp.status_code} 200
Add Structure Intent
- [Documentation] Add Structure Intent
+ [Documentation] Add Structure Intent
[Tags] Post
${body} OperatingSystem.Get File ${STRUCTURE_INTENT_FILE}
${resp} RequestsLibrary.Post Request session ${STRUCTURE_INTENT_URI} data=${body} headers=${HEADERS_YANG_JSON}
Ping h2 to h4
[Documentation] Verify Ping between hosts h2 and h4. To check mininet ping here added wait until time as '20s'. Since, sometimes it takes maximum '20sec' to send packet b/w hosts.
- Wait Until Keyword Succeeds 20s 1s Mininet Ping Should Succeed h2 h4
+ Wait Until Keyword Succeeds 20s 1s Mininet Ping Should Succeed h2 h4
Get flow
[Documentation] Get flow of a vtn Tenant1
Verify FlowMacAddress
[Documentation] Checking Flows on switch
[Tags] Switch
- Wait Until Keyword Succeeds 20s 1s Verify FlowMacAddress h2 h4 OF10
+ Wait Until Keyword Succeeds 20s 1s Verify FlowMacAddress h2 h4 OF10
Remove Portmap for If1
[Documentation] Remove portmap for the interface If1
Verify RemovedFlowMacAddress
[Documentation] flows will be deleted after the port map is removed
- Wait Until Keyword Succeeds 20s 1s Verify RemovedFlowMacAddress h1 h3 OF10
+ Wait Until Keyword Succeeds 20s 1s Verify RemovedFlowMacAddress h1 h3 OF10
Delete a vtn Tenant1
[Documentation] Delete a vtn Tenant1