summaryrefslogtreecommitdiff
path: root/test/suite/test_drop.py
diff options
context:
space:
mode:
authorDon Anderson <dda@ddanderson.com>2014-12-08 10:45:13 -0500
committerDon Anderson <dda@ddanderson.com>2014-12-08 10:45:13 -0500
commit4957aea23978676acbef864501c7f79b51a90b9a (patch)
tree4ef3b5f3748320d9022d3e5dcefa59d748463d1e /test/suite/test_drop.py
parentbbe9ab35663fba23e070b9a50fb444de83cc5b47 (diff)
downloadmongo-4957aea23978676acbef864501c7f79b51a90b9a.tar.gz
Handle nonexistent objects for drops of indices/colgroups/lsm with 'force'.
refs #1436.
Diffstat (limited to 'test/suite/test_drop.py')
-rw-r--r--test/suite/test_drop.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/suite/test_drop.py b/test/suite/test_drop.py
index 11d69b159c7..dcda3998436 100644
--- a/test/suite/test_drop.py
+++ b/test/suite/test_drop.py
@@ -71,10 +71,22 @@ class test_drop(wttest.WiredTigerTestCase):
# Test drop of a non-existent object: force succeeds, without force fails.
def test_drop_dne(self):
uri = self.uri + self.name
+ cguri = 'colgroup:' + self.name
+ idxuri = 'index:' + self.name + ':indexname'
+ lsmuri = 'lsm:' + self.name
confirm_does_not_exist(self, uri)
self.session.drop(uri, 'force')
self.assertRaises(
wiredtiger.WiredTigerError, lambda: self.session.drop(uri, None))
+ self.session.drop(cguri, 'force')
+ self.assertRaises(
+ wiredtiger.WiredTigerError, lambda: self.session.drop(cguri, None))
+ self.session.drop(idxuri, 'force')
+ self.assertRaises(
+ wiredtiger.WiredTigerError, lambda: self.session.drop(idxuri, None))
+ self.session.drop(lsmuri, 'force')
+ self.assertRaises(
+ wiredtiger.WiredTigerError, lambda: self.session.drop(lsmuri, None))
if __name__ == '__main__':