diff options
author | Don Anderson <dda@ddanderson.com> | 2014-12-08 10:45:13 -0500 |
---|---|---|
committer | Don Anderson <dda@ddanderson.com> | 2014-12-08 10:45:13 -0500 |
commit | 4957aea23978676acbef864501c7f79b51a90b9a (patch) | |
tree | 4ef3b5f3748320d9022d3e5dcefa59d748463d1e /test | |
parent | bbe9ab35663fba23e070b9a50fb444de83cc5b47 (diff) | |
download | mongo-4957aea23978676acbef864501c7f79b51a90b9a.tar.gz |
Handle nonexistent objects for drops of indices/colgroups/lsm with 'force'.
refs #1436.
Diffstat (limited to 'test')
-rw-r--r-- | test/suite/test_drop.py | 12 |
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__': |