diff options
author | Don Anderson <dda@ddanderson.com> | 2015-05-29 09:07:06 -0400 |
---|---|---|
committer | Don Anderson <dda@ddanderson.com> | 2015-05-29 09:07:06 -0400 |
commit | bc80e23f81dbf16486f390caee4407637cf08d87 (patch) | |
tree | 31ea02efc746b3a52b5cd59b981b38f487f0b78c /test/suite/test_schema03.py | |
parent | beb3a28d4f06b23d66f03ca2bba67af286221429 (diff) | |
download | mongo-bc80e23f81dbf16486f390caee4407637cf08d87.tar.gz |
Added tests to create indices after entries have been inserted into
the main table. WT-147.
Diffstat (limited to 'test/suite/test_schema03.py')
-rw-r--r-- | test/suite/test_schema03.py | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/test/suite/test_schema03.py b/test/suite/test_schema03.py index 20e173cc215..6e535b60850 100644 --- a/test/suite/test_schema03.py +++ b/test/suite/test_schema03.py @@ -348,7 +348,6 @@ class test_schema03(wttest.WiredTigerTestCase): # Report known limitations in the test, # we'll work around these later, in a loop where we don't want to print. - self.KNOWN_LIMITATION('Indices created after data population will have no entries') self.KNOWN_LIMITATION('Column groups created after indices confuses things') # Column groups are created in two different times. @@ -471,12 +470,11 @@ class test_schema03(wttest.WiredTigerTestCase): self.finished_step('populate0') -#TODO # Create indices in third set -# for tc in tabconfigs: -# for idx in tc.idxlist: -# if idx.createset == 2: -# self.create('index', tc.tablename, idx.idxname, idx.columns) + for tc in tabconfigs: + for idx in tc.idxlist: + if idx.createset == 2: + self.create('index', tc.tablename, idx.idxname, idx.columns) self.finished_step('index2') @@ -543,13 +541,6 @@ class test_schema03(wttest.WiredTigerTestCase): # for each index, check each entry for idx in tc.idxlist: - # KNOWN LIMITATION: Indices created after data population - # will have no entries, so don't bother with them here - # Remove these statements when the limitation is fixed. - if idx.createset == 2: - continue - # END KNOWN LIMITATION - # Although it's possible to open an index on some partial # list of columns, we'll keep it simple here, and always # use all columns. |