Skip to content

Commit

Permalink
fix: add auth to the command line arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanoDeVuono authored and nodkz committed Dec 2, 2018
1 parent 1b9e617 commit d1f73ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/util/MongoInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export default class MongodbInstance {
if (storageEngine) result.push('--storageEngine', storageEngine);
if (dbPath) result.push('--dbpath', dbPath);
if (!auth) result.push('--noauth');
else if (auth) result.push('--auth');
if (replSet) result.push('--replSet', replSet);

return result.concat(args || []);
Expand Down
1 change: 1 addition & 0 deletions src/util/__tests__/MongoInstance-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ describe('MongoInstance', () => {
'27555',
'--dbpath',
'/data',
'--auth',
]);
});

Expand Down

0 comments on commit d1f73ed

Please sign in to comment.