diff options
author | Gurucharan Shetty <gshetty@nicira.com> | 2013-07-08 15:27:27 -0700 |
---|---|---|
committer | root <root@ubuntu-cloud.(none)> | 2013-07-08 17:22:13 -0700 |
commit | 3fc53787c9ff6cf315050af03280ac3e63abffd7 (patch) | |
tree | b30985d4be187092cf1cd1086c588fb495240b53 /tests/ovsdb-server.at | |
parent | b7e2f6b3f5e35cc64349d900e3be9d1dc5167c73 (diff) | |
download | openvswitch-3fc53787c9ff6cf315050af03280ac3e63abffd7.tar.gz |
tests: Additional test for run time addition of a database.
Adding a removed database covers a common use case.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Diffstat (limited to 'tests/ovsdb-server.at')
-rw-r--r-- | tests/ovsdb-server.at | 7 |
1 files changed, 7 insertions, 0 deletions
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]) |