Skip to content

Commit 3bd1e92

Browse files
committed
Handle new autoTenantCreation field in tests
1 parent 30d6ee8 commit 3bd1e92

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/schema/journey.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ describe('schema', () => {
181181
},
182182
},
183183
multiTenancyConfig: {
184+
autoTenantCreation: false,
184185
enabled: false,
185186
},
186187
shardingConfig: {
@@ -587,7 +588,7 @@ describe('property setting defaults and migrations', () => {
587588

588589
const errMsg1 =
589590
'`indexInverted` is deprecated and can not be set together with `indexFilterable` or `indexSearchable`';
590-
const errMsg2 = '`indexSearchable` is not allowed for other than text/text[] data types';
591+
const errMsg2 = '`indexSearchable` is allowed only for text/text[] data types';
591592
test.each([
592593
['text', false, null, false, errMsg1],
593594
['text', false, null, true, errMsg1],
@@ -678,6 +679,7 @@ describe('multi tenancy', () => {
678679
vectorIndexType: 'hnsw',
679680
vectorizer: 'text2vec-contextionary',
680681
multiTenancyConfig: {
682+
autoTenantCreation: true,
681683
enabled: true,
682684
},
683685
};
@@ -826,6 +828,7 @@ function newClassObject(className: string) {
826828
},
827829
},
828830
multiTenancyConfig: {
831+
autoTenantCreation: false,
829832
enabled: false,
830833
},
831834
shardingConfig: {

0 commit comments

Comments
 (0)