Skip to content

Commit e1802e0

Browse files
committed
test
1 parent b167531 commit e1802e0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

spec/GridFSBucketStorageAdapter.spec.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,20 @@ describe_only_db('mongo')('GridFSBucket', () => {
2424
const databaseURI = 'mongodb://localhost:27017/parse';
2525
const gfsAdapter = new GridFSBucketAdapter(databaseURI, {
2626
retryWrites: true,
27-
// these are not supported by the mongo client
27+
// Parse Server-specific options that should be filtered out before passing to MongoDB client
2828
allowPublicExplain: true,
2929
enableSchemaHooks: true,
3030
schemaCacheTtl: 5000,
3131
maxTimeMS: 30000,
32+
disableIndexFieldValidation: true,
3233
logClientEvents: [{ name: 'commandStarted' }],
34+
createIndexUserUsername: true,
35+
createIndexUserUsernameCaseInsensitive: true,
36+
createIndexUserEmail: true,
37+
createIndexUserEmailCaseInsensitive: true,
38+
createIndexUserEmailVerifyToken: true,
39+
createIndexUserPasswordResetToken: true,
40+
createIndexRoleName: true,
3341
});
3442

3543
const db = await gfsAdapter._connect();

0 commit comments

Comments
 (0)