summaryrefslogtreecommitdiff
path: root/test/suite/test_checkpoint01.py
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-09-09 09:06:39 -0400
committerKeith Bostic <keith@wiredtiger.com>2014-09-09 09:06:39 -0400
commit7ef2e3adfb6da3c7da6c51e36b4775fad72443d5 (patch)
tree27ae8d37fa59e16b529e718774098d3abf2f5b9b /test/suite/test_checkpoint01.py
parent08c75ef4d13f3a6f5c6d3f3c4dd345d301af4f34 (diff)
downloadmongo-7ef2e3adfb6da3c7da6c51e36b4775fad72443d5.tar.gz
Disallow JSON quoting characters in checkpoint names, it's not a good
idea.
Diffstat (limited to 'test/suite/test_checkpoint01.py')
-rw-r--r--test/suite/test_checkpoint01.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/suite/test_checkpoint01.py b/test/suite/test_checkpoint01.py
index 153ea015cf5..ab4dbe18bd6 100644
--- a/test/suite/test_checkpoint01.py
+++ b/test/suite/test_checkpoint01.py
@@ -308,8 +308,8 @@ class test_checkpoint_last(wttest.WiredTigerTestCase):
# Check we can't use the reserved name as an application checkpoint name.
-class test_checkpoint_last_name(wttest.WiredTigerTestCase):
- def test_checkpoint_last_name(self):
+class test_checkpoint_illegal_name(wttest.WiredTigerTestCase):
+ def test_checkpoint_illegal_name(self):
simple_populate(self, "file:checkpoint", 'key_format=S', 100)
msg = '/the checkpoint name.*is reserved/'
for conf in (
@@ -324,6 +324,12 @@ class test_checkpoint_last_name(wttest.WiredTigerTestCase):
'drop=(to=WiredTigerCheckpointX)'):
self.assertRaisesWithMessage(wiredtiger.WiredTigerError,
lambda: self.session.checkpoint(conf), msg)
+ msg = '/WiredTiger objects should not include grouping/'
+ for conf in (
+ 'name=check{point',
+ 'name=check\\point'):
+ self.assertRaisesWithMessage(wiredtiger.WiredTigerError,
+ lambda: self.session.checkpoint(conf), msg)
# Check we can't name checkpoints that include LSM tables.