diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2016-01-20 14:22:54 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2016-01-20 14:22:54 +1100 |
commit | c7c4e74fcfaffb3ad711bfd2624607264b0332bb (patch) | |
tree | 9598b5a45d1028365cc40ae2ce9230184650bc08 /test/suite | |
parent | 60c118f9fd7a82ddacc94829b3852d2fec9d7258 (diff) | |
download | mongo-c7c4e74fcfaffb3ad711bfd2624607264b0332bb.tar.gz |
WT-2995 Review error handling in create.
Make handling of exclusive as close as possible between tables, indexes
and column groups.
Diffstat (limited to 'test/suite')
-rw-r--r-- | test/suite/test_schema02.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/suite/test_schema02.py b/test/suite/test_schema02.py index 0535369d028..6895e947efe 100644 --- a/test/suite/test_schema02.py +++ b/test/suite/test_schema02.py @@ -99,6 +99,14 @@ class test_schema02(wttest.WiredTigerTestCase): # expect this to work self.session.create("colgroup:main:c1", "columns=(S1,i2)") + # exclusive: no error message + self.expect_failure_colgroup("main:c1", "columns=(S1,i2),exclusive", + "") + + # exists with different config + self.expect_failure_colgroup("main:c1", "columns=(S1,i4)", + "/does not match existing configuration/") + # colgroup not declared in initial create self.expect_failure_colgroup("main:c3", "columns=(S3,i4)", "/Column group 'c3' not found in" |