+++ /dev/null
-*** Settings ***
-Documentation Test suite for AddressObservations in RESTCONF inventory
-Suite Setup Create Session session http://${CONTROLLER}:${PORT} auth=${AUTH} headers=${HEADERS_XML}
-Suite Teardown Delete All Sessions
-Library SSHLibrary
-Library Collections
-Library ../../../libraries/RequestsLibrary.py
-Library ../../../libraries/Common.py
-Variables ../../../variables/Variables.py
-
-*** Variables ***
-${REST_CONTEXT} /restconf/operational/opendaylight-inventory:nodes
-${IP_1} "10.0.0.1"
-${IP_2} "10.0.0.2"
-${IP_3} "10.0.0.3"
-
-*** Test Cases ***
-Get list of nodes
- [Documentation] Get the inventory, should not contain address observations
- ${resp} Get session ${REST_CONTEXT}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Contain ${resp.content} openflow:1
- Should Contain ${resp.content} openflow:2
- Should Contain ${resp.content} openflow:3
- Should Contain X Times ${resp.content} forwarding 4
- Should Not Contain ${resp.content} ${IP_1}
- Should Not Contain ${resp.content} ${IP_2}
- Should Not Contain ${resp.content} ${IP_3}
-
-Ping All
- [Documentation] Pingall, verify no packet loss
- [Tags] Get
- Write pingall
- Sleep 5
- ${result} Read
- Should Contain ${result} 0% dropped
- Should Not Contain ${result} X
-
-Get node 1 addresses
- [Documentation] Get the address observations for node 1
- ${resp} Get session ${REST_CONTEXT}/node/openflow:1
- Should Be Equal As Strings ${resp.status_code} 200
- Should Contain ${resp.content} openflow:1:1
- Should Contain ${resp.content} openflow:1:2
- Should Contain ${resp.content} address-tracker:addresses
- Should Contain X Times ${resp.content} ${IP_1} 1
- Should Not Contain ${resp.content} ${IP_2}
- Should Not Contain ${resp.content} ${IP_3}
-
-Get node 2 addresses
- [Documentation] Get the address observations for node 2
- ${resp} Get session ${REST_CONTEXT}/node/openflow:2
- Should Be Equal As Strings ${resp.status_code} 200
- Should Contain ${resp.content} openflow:2:1
- Should Contain ${resp.content} openflow:2:2
- Should Contain ${resp.content} openflow:2:3
- Should Contain ${resp.content} address-tracker:addresses
- Should Not Contain ${resp.content} ${IP_1}
- Should Contain X Times ${resp.content} ${IP_2} 1
- Should Not Contain ${resp.content} ${IP_3}
-
-Get node 3 addresses
- [Documentation] Get the address observations for node 3
- ${resp} Get session ${REST_CONTEXT}/node/openflow:3
- Should Be Equal As Strings ${resp.status_code} 200
- Should Contain ${resp.content} openflow:3:1
- Should Contain ${resp.content} openflow:3:2
- Should Contain ${resp.content} address-tracker:addresses
- Should Not Contain ${resp.content} ${IP_1}
- Should Not Contain ${resp.content} ${IP_2}
- Should Contain X Times ${resp.content} ${IP_3} 1