3 Library RequestsLibrary
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
16 Should Contain ${resp.content} ${node1}
17 Should Contain ${resp.content} ${node2}
18 Should Contain ${resp.content} ${node3}