Navigation Menu

Skip to content

Commit

Permalink
Update tests for added configuration tables
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 13, 2012
1 parent 94587fe commit 098a03c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/database-domain.test.js
Expand Up @@ -283,6 +283,10 @@ suite('database', function() {
});
var expectedDump = 'table_create ' + domain.tableName + ' ' +
'TABLE_HASH_KEY ShortText\n' +
'table_create ' + domain.configurationsTableName + ' ' +
'TABLE_HASH_KEY ShortText\n' +
'column_create ' + domain.configurationsTableName + ' ' +
'value COLUMN_SCALAR ShortText\n' +
'table_create ' + domain.termsTableName + ' ' +
'TABLE_PAT_KEY|KEY_NORMALIZE ShortText ' +
'--default_tokenizer TokenBigram';
Expand Down
20 changes: 20 additions & 0 deletions test/database-index-field.test.js
Expand Up @@ -212,6 +212,10 @@ suite('database', function() {
function getNoColumnDump() {
return 'table_create ' + domain.tableName + ' ' +
'TABLE_HASH_KEY ShortText\n' +
'table_create ' + domain.configurationsTableName + ' ' +
'TABLE_HASH_KEY ShortText\n' +
'column_create ' + domain.configurationsTableName + ' ' +
'value COLUMN_SCALAR ShortText\n' +
'table_create ' + domain.termsTableName + ' ' +
'TABLE_PAT_KEY|KEY_NORMALIZE ShortText ' +
'--default_tokenizer TokenBigram';
Expand All @@ -235,6 +239,10 @@ suite('database', function() {
'TABLE_HASH_KEY ShortText\n' +
'column_create ' + domain.tableName + ' ' +
field.columnName + ' COLUMN_SCALAR ShortText\n' +
'table_create ' + domain.configurationsTableName + ' ' +
'TABLE_HASH_KEY ShortText\n' +
'column_create ' + domain.configurationsTableName + ' ' +
'value COLUMN_SCALAR ShortText\n' +
'table_create ' + domain.termsTableName + ' ' +
'TABLE_PAT_KEY|KEY_NORMALIZE ShortText ' +
'--default_tokenizer TokenBigram\n' +
Expand Down Expand Up @@ -278,6 +286,10 @@ suite('database', function() {
'TABLE_HASH_KEY ShortText\n' +
'column_create ' + domain.tableName + ' ' +
field.columnName + ' COLUMN_SCALAR UInt32\n' +
'table_create ' + domain.configurationsTableName + ' ' +
'TABLE_HASH_KEY ShortText\n' +
'column_create ' + domain.configurationsTableName + ' ' +
'value COLUMN_SCALAR ShortText\n' +
'table_create ' + domain.termsTableName + ' ' +
'TABLE_PAT_KEY|KEY_NORMALIZE ShortText ' +
'--default_tokenizer TokenBigram\n' +
Expand Down Expand Up @@ -321,6 +333,10 @@ suite('database', function() {
});
var expected = 'table_create ' + domain.tableName + ' ' +
'TABLE_HASH_KEY ShortText\n' +
'table_create ' + domain.configurationsTableName + ' ' +
'TABLE_HASH_KEY ShortText\n' +
'column_create ' + domain.configurationsTableName + ' ' +
'value COLUMN_SCALAR ShortText\n' +
'table_create ' + domain.termsTableName + ' ' +
'TABLE_PAT_KEY|KEY_NORMALIZE ShortText ' +
'--default_tokenizer TokenBigram\n' +
Expand Down Expand Up @@ -383,6 +399,10 @@ suite('database', function() {
'TABLE_HASH_KEY ShortText\n' +
'column_create ' + domain.tableName + ' ' +
field.columnName + ' COLUMN_VECTOR ShortText\n' +
'table_create ' + domain.configurationsTableName + ' ' +
'TABLE_HASH_KEY ShortText\n' +
'column_create ' + domain.configurationsTableName + ' ' +
'value COLUMN_SCALAR ShortText\n' +
'table_create ' + domain.termsTableName + ' ' +
'TABLE_PAT_KEY|KEY_NORMALIZE ShortText ' +
'--default_tokenizer TokenBigram\n' +
Expand Down

0 comments on commit 098a03c

Please sign in to comment.