From 3fc53787c9ff6cf315050af03280ac3e63abffd7 Mon Sep 17 00:00:00 2001 From: Gurucharan Shetty Date: Mon, 8 Jul 2013 15:27:27 -0700 Subject: [PATCH] tests: Additional test for run time addition of a database. Adding a removed database covers a common use case. Signed-off-by: Gurucharan Shetty --- tests/ovsdb-server.at | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/ovsdb-server.at b/tests/ovsdb-server.at index 16a1d952c..8a01f0a11 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]) -- 2.47.0