+ RequestsLibrary.Get Request
+ RequestsLibrary.Delete Request
+ RequestsLibrary.Put Request
+ RequestsLibrary.Post Request
Updated RequestLibrary calls in following directories
csit/suites/sdninterfaceapp/
csit/suites/sxp/
csit/suites/topoprocessing/
csit/suites/ttp/
csit/suites/unimgr/
csit/suites/usc/ (Removed due to failure)
csit/suites/usecplugin/
Change-Id: I81a8f366835d31a3d70ea52bd99d8afd345aba1b
Signed-off-by: Junaid Zulfiqar <junaid.rao21@gmail.com>
*** Test Cases ***
Get Controller Modules
[Documentation] Get the controller modules via Restconf
*** Test Cases ***
Get Controller Modules
[Documentation] Get the controller modules via Restconf
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} ietf-restconf
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} ietf-restconf
*** Test Cases ***
Get Controller Modules
[Documentation] Get the controller modules via Restconf
*** Test Cases ***
Get Controller Modules
[Documentation] Get the controller modules via Restconf
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} ietf-restconf
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} ietf-restconf
*** Test Cases ***
Get Controller Modules
[Documentation] Get the controller modules via Restconf
*** Test Cases ***
Get Controller Modules
[Documentation] Get the controller modules via Restconf
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} ietf-restconf
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} ietf-restconf
Prepare New Feature Installation
Install a Feature odl-topoprocessing-network-topology odl-bgpcep-pcep-all timeout=30
Wait For Karaf Log Registering Topology Request Listener 300
Prepare New Feature Installation
Install a Feature odl-topoprocessing-network-topology odl-bgpcep-pcep-all timeout=30
Wait For Karaf Log Registering Topology Request Listener 300
- ${resp} RequestsLibrary.Put session ${CONFIGURATION}/${TOPOLOGY_URL}/unif:1 data=${UNIFICATION_NT}
+ ${resp} RequestsLibrary.Put Request session ${CONFIGURATION}/${TOPOLOGY_URL}/unif:1 data=${UNIFICATION_NT}
Log ${CONFIGURATION}/${TOPOLOGY_URL}/unif:1
Should Be Equal As Strings ${resp.status_code} 200
Wait For Karaf Log Correlation configuration successfully read
Log ${CONFIGURATION}/${TOPOLOGY_URL}/unif:1
Should Be Equal As Strings ${resp.status_code} 200
Wait For Karaf Log Correlation configuration successfully read
- ${resp} RequestsLibrary.Put session ${CONFIGURATION}/${TOPOLOGY_URL}/und-topo:1 data=${UNDERLAY_TOPOLOGY_1}
+ ${resp} RequestsLibrary.Put Request session ${CONFIGURATION}/${TOPOLOGY_URL}/und-topo:1 data=${UNDERLAY_TOPOLOGY_1}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Issue Command On Karaf Console log:clear
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Issue Command On Karaf Console log:clear
- ${resp} RequestsLibrary.Put session ${CONFIGURATION}/${TOPOLOGY_URL}/und-topo:2 data=${UNDERLAY_TOPOLOGY_2}
+ ${resp} RequestsLibrary.Put Request session ${CONFIGURATION}/${TOPOLOGY_URL}/und-topo:2 data=${UNDERLAY_TOPOLOGY_2}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Wait For Karaf Log Transaction successfully written
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Wait For Karaf Log Transaction successfully written
- ${resp} RequestsLibrary.Get session ${OPERATIONAL}/network-topology:network-topology
+ ${resp} RequestsLibrary.Get Request session ${OPERATIONAL}/network-topology:network-topology
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} <topology-id>unif:1</topology-id>
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} <topology-id>unif:1</topology-id>
Prepare New Feature Installation
[Documentation] Clears karaf logs and CONFIGURATION datastore
Prepare New Feature Installation
[Documentation] Clears karaf logs and CONFIGURATION datastore
- ${resp} RequestsLibrary.Delete session ${CONFIGURATION}/network-topology:network-topology
+ ${resp} RequestsLibrary.Delete Request session ${CONFIGURATION}/network-topology:network-topology
Issue Command On Karaf Console log:clear
Issue Command On Karaf Console log:clear
*** Test Cases ***
Get Controller Modules
[Documentation] Get the controller modules via Restconf
*** Test Cases ***
Get Controller Modules
[Documentation] Get the controller modules via Restconf
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} ietf-restconf
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} ietf-restconf
*** Test Cases ***
Get Controller Modules
[Documentation] Get the controller modules via Restconf
*** Test Cases ***
Get Controller Modules
[Documentation] Get the controller modules via Restconf
- ${resp} RequestsLibrary.Get session ${MODULES_API}
+ ${resp} RequestsLibrary.Get Request session ${MODULES_API}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} ietf-restconf
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} ietf-restconf
*** Test Cases ***
Get Controller Modules
[Documentation] Get the controller modules via Restconf
*** Test Cases ***
Get Controller Modules
[Documentation] Get the controller modules via Restconf
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} ietf-restconf
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} ietf-restconf