diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-03-20 10:49:41 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-03-20 10:49:41 -0400 |
commit | e9bd34719860356f9bcac88a9d8ca6848aeb7855 (patch) | |
tree | 149e215ce95ec57dc74042ef5b957a1fcb66697b /test | |
parent | 94d3e1ff61eeff4801a64cc6f753eeb7a8eb9650 (diff) | |
download | mongo-e9bd34719860356f9bcac88a9d8ca6848aeb7855.tar.gz |
Add tests for illegal block compressors.
Diffstat (limited to 'test')
-rw-r--r-- | test/suite/test_bug012.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/test/suite/test_bug012.py b/test/suite/test_bug012.py index 0ffcf03906e..63e0f17e52f 100644 --- a/test/suite/test_bug012.py +++ b/test/suite/test_bug012.py @@ -36,21 +36,28 @@ class test_bug012(wttest.WiredTigerTestCase): msg = '/unknown collator/' self.assertRaisesWithMessage(wiredtiger.WiredTigerError, lambda: self.session.create('table:A', - 'type=lsm,lsm=(bloom_config=(collator="foo"))'), msg) + 'type=lsm,lsm=(bloom_config=(collator="xyzzy"))'), msg) # Test that we detect illegal key formats. def test_illegal_key_format(self): msg = '/Invalid type/' self.assertRaisesWithMessage(wiredtiger.WiredTigerError, lambda: self.session.create('table:A', - 'type=lsm,lsm=(bloom_config=(key_format="X"))'), msg) + 'type=lsm,lsm=(bloom_config=(key_format="xyzzy"))'), msg) # Test that we detect illegal value formats. def test_illegal_value_format(self): msg = '/Invalid type/' self.assertRaisesWithMessage(wiredtiger.WiredTigerError, lambda: self.session.create('table:A', - 'type=lsm,lsm=(bloom_config=(value_format="X"))'), msg) + 'type=lsm,lsm=(bloom_config=(value_format="xyzzy"))'), msg) + + # Test that we detect illegal compressors. + def test_illegal_compressor(self): + msg = '/unknown block compressor/' + self.assertRaisesWithMessage(wiredtiger.WiredTigerError, + lambda: self.session.create('table:A', + 'type=lsm,lsm=(bloom_config=(block_compressor="xyzzy"))'), msg) if __name__ == '__main__': wttest.run() |