1 # This file contains test cases for the OVSDB Northbound API
2 # The ordering of the test data MUST be as follows:
9 # The tests are run in the order specified in this file
10 # The following variables are permitted in the URI or JSON:
12 # ${node} = The node identifier
13 # ${uuid} = The last UUID returned by a POST operation
14 # ${bridge_uuid} = The UUID of the test bridge
15 # ${port_uuid} = The UUID of the test port
17 - name: testGetBridgeRows
19 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/bridge/rows
23 - name: testGetPortRows
25 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/port/rows
29 - name: testGetInterfaceRows
31 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/interface/rows
35 - name: testGetControllerRows
37 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/controller/rows
41 - name: testGetSslRows
43 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/ssl/rows
47 - name: testGetSflowRows
49 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/sflow/rows
53 - name: testGetQosRows
55 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/qos/rows
59 - name: testGetQueueRows
61 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/queue/rows
65 - name: testGetNetflowRows
67 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/netflow/rows
71 - name: testGetManagerRows
73 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/manager/rows
77 - name: testGetOpenVswitchRows
79 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/open_vswitch/rows
85 - name: testCreateBridge
87 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/bridge/rows
93 "datapath_type": "OPENFLOW"
99 - name: testGetBridgeRow
101 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/bridge/rows/${uuid}
105 - name: testUpdateBridgeRow
107 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/bridge/rows/${uuid}
120 - name: testCreatePort
122 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/port/rows
125 "parent_uuid":"${bridge_uuid}",
134 - name: testGetPortRow
136 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/port/rows/${uuid}
140 - name: testUpdatePortRow
142 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/port/rows/${uuid}
155 - name: testCreateInteface
157 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/interface/rows
160 "parent_uuid": "${port_uuid}",
163 "name":"testInterface",
170 - name: testGetInterfaceRow
172 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/interface/rows/${uuid}
176 - name: testUpdateInterfaceRow
178 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/interface/rows/${uuid}
189 - name: testDeleteInterfaceRow
191 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/interface/rows/${uuid}
197 - name: testCreateController
199 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/controller/rows
202 "parent_uuid" : "${bridge_uuid}",
211 - name: testGetControllerRow
213 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/controller/rows/${uuid}
217 - name: testUpdateControllerRow
219 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/controller/rows/${uuid}
224 "is_connected": false
230 - name: testDeleteControllerRow
232 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/controller/rows/${uuid}
238 - name: testCreateSslRow
240 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/ssl/rows
246 "ca_cert" : "ca_cert",
247 "bootstrap_ca_cert" : true,
248 "certificate":"pieceofpaper",
249 "private_key" : "private"
255 - name: testGetSslRow
257 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/ssl/rows/${uuid}
261 - name: testUpdateSslRow
263 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/ssl/rows/${uuid}
268 "private_key" : "secret"
274 - name: testDeleteSslRow
276 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/ssl/rows/${uuid}
282 - name: testCreateSflowRow
284 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/sflow/rows
287 "parent_uuid": "${bridge_uuid}",
301 - name: testGetSflowRow
303 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/sflow/rows/${uuid}
307 - name: testUpdateSflowRow
309 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/sflow/rows/${uuid}
326 - name: testDeleteSflowRow
328 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/sflow/rows/${uuid}
334 - name: testCreateQosRow
336 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/qos/rows
339 "parent_uuid" : "${port_uuid}",
348 - name: testGetQosRow
350 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/qos/rows/${uuid}
354 - name: testUpdateQosRow
356 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/qos/rows/${uuid}
369 - name: testCreateQueueRow
371 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/queue/rows
374 "parent_uuid": "${qos_uuid}",
388 - name: testGetQueueRow
390 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/queue/rows/${uuid}
394 - name: testUpdateQueueRow
396 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/queue/rows/${uuid}
402 "map", ["foo", "bar" ]
409 - name: testDeleteQueueRow
411 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/queue/rows/${uuid}
417 - name: testCreateNetflowRow
419 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/netflow/rows
422 "parent_uuid":"${bridge_uuid}",
426 "set", ["192.168.1.102:9998"]],
427 "active_timeout" : "0"
433 - name: testGetNetflowRow
435 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/netflow/rows/${uuid}
439 - name: testUpdateNetflowRow
441 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/netflow/rows/${uuid}
447 "set", ["192.168.1.102:9998", "192.168.2.102:9998"]]
453 - name: testDeleteNetflowRow
455 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/netflow/rows/${uuid}
461 - name: testCreateManagerRow
463 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/manager/rows
466 "parent_uuid":"${ovs_uuid}",
470 "is_connected": true,
477 - name: testGetManagerRow
479 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/manager/rows/${uuid}
483 - name: testUpdateManagerRow
485 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/manager/rows/${uuid}
490 "is_connected": false
496 - name: testDeleteManagerRow
498 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/manager/rows/${uuid}
504 - name: testDeleteQosRow
506 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/qos/rows/${qos_uuid}
510 - name: testDeletePortRow
512 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/port/rows/${port_uuid}
516 - name: testDeleteBridgeRow
518 uri: /ovsdb/nb/v2/node/OVS/${node}/tables/bridge/rows/${bridge_uuid}