Adding a removed database covers a common use case.

Signed-off-by: Gurucharan Shetty <[email protected]>
---
 tests/ovsdb-server.at |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/ovsdb-server.at b/tests/ovsdb-server.at
index 16a1d95..8a01f0a 100644
--- a/tests/ovsdb-server.at
+++ b/tests/ovsdb-server.at
@@ -234,6 +234,13 @@ AT_CHECK([ovs-appctl -t ovsdb-server 
ovsdb-server/remove-db ordinals], [2],
   [], [Failed to find the database.
 ovs-appctl: ovsdb-server: server returned an error
 ])
+
+# Add a removed database.
+AT_CHECK([ovs-appctl -t ovsdb-server ovsdb-server/add-db db2], [0])
+AT_CHECK([ovs-appctl -t ovsdb-server ovsdb-server/list-dbs],
+  [0], [constraints
+])
+AT_CHECK([ovsdb-client list-tables unix:socket constraints], [0], [ignore], 
[ignore])
 AT_CLEANUP
 
 AT_SETUP([ovsdb-server/add-db and remove-db with --monitor])
-- 
1.7.9.5

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to