Merge "Add more operation cases for switch manager module."
[integration/test.git] / test / csit / suites / base / 005__Switch_Manager.txt
1 *** Settings ***
2 Library       Collections
3 Library       RequestsLibrary
4
5 *** Testcases ***
6 Get Nodes
7     ${node1}=  Set Variable  "node":{"type":"OF","id":"00:00:00:00:00:00:00:01"}
8     ${node2}=  Set Variable  "node":{"type":"OF","id":"00:00:00:00:00:00:00:02"}
9     ${node3}=  Set Variable  "node":{"type":"OF","id":"00:00:00:00:00:00:00:03"}
10     ${auth}=    Create List    admin    admin
11     ${headers}=    Create Dictionary    Content-Type   application/json
12     Create Session    controller   http://${CONTROLLER}:8080    headers=${headers}   auth=${auth} 
13     ${resp}=    Get    controller   /controller/nb/v2/switchmanager/default/nodes 
14     Should Be Equal As Strings    ${resp.status_code}    200
15     Log    ${resp.content}
16     Should Contain    ${resp.content}   ${node1}
17     Should Contain    ${resp.content}   ${node2}
18     Should Contain    ${resp.content}   ${node3}