You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertIsError(event);// has to be used, because there is not typeguard from "expect(variable).toBeInstanceOf"
443
-
expect(event.message).toEqual(
444
-
'Instance Failed to start with "DBPathInUse". Original Error:\n'+
445
-
'Unable to create/open the lock file: /dev/null/mongod.lock (Not a directory). Ensure the user executing mongod is the owner of the lock file and has the appropriate permissions. Also make sure that another mongod instance is not already running on the /dev/null directory'
assertIsError(event);// has to be used, because there is not typeguard from "expect(variable).toBeInstanceOf"
463
-
expect(event.message).toEqual(
464
-
'Instance Failed to start with "DBPathInUse". Original Error:\n'+
465
-
'Unable to lock the lock file: /tmp/hellodb/mongod.lock (Resource temporarily unavailable). Another mongod instance is already running on the /tmp/hellodb directory'
assertIsError(event);// has to be used, because there is not typeguard from "expect(variable).toBeInstanceOf"
503
-
expect(event.message).toEqual(
504
-
'Instance Failed to start with "NonExistentPath". Original Error:\n'+
505
-
"Data directory /tmp/hello not found. Create the missing directory or specify another path using (1) the --dbpath command line option, or (2) by adding the 'storage.dbPath' option in the configuration file."
Copy file name to clipboardExpand all lines: packages/mongodb-memory-server-core/src/util/__tests__/__snapshots__/MongoInstance.test.ts.snap
+36
Original file line number
Diff line number
Diff line change
@@ -5,3 +5,39 @@ exports[`MongodbInstance "_launchMongod" should throw an error if "mongodProcess
5
5
exports[`MongodbInstance prepareCommandArgs should throw an error if no dbpath is provided 1`] =`"\\"instanceOpts.dbPath\\" is required to be set!"`;
6
6
7
7
exports[`MongodbInstance prepareCommandArgs should throw an error if no port is provided 1`] =`"\\"instanceOpts.port\\" is required to be set!"`;
8
+
9
+
exports[`MongodbInstance test events checkErrorInLine() should emit "instanceError" when shared libraries fail to load 1`] =`"Instance failed to start because a library is missing or cannot be opened: \\"libcrypto.so.1.1\\""`;
10
+
11
+
exports[`MongodbInstance test events stdoutHandler() should emit "instanceError" when "excepetion in initAndListen" is thrown DbPathInUse (Not a directory) 1`] =`
12
+
"Instance Failed to start with \\"DBPathInUse\\". Original Error:
13
+
Unable to create/open the lock file: /dev/null/mongod.lock (Not a directory). Ensure the user executing mongod is the owner of the lock file and has the appropriate permissions. Also make sure that another mongod instance is not already running on the /dev/null directory"
14
+
`;
15
+
16
+
exports[`MongodbInstance test events stdoutHandler() should emit "instanceError" when "excepetion in initAndListen" is thrown DbPathInUse (already running) 1`] =`
17
+
"Instance Failed to start with \\"DBPathInUse\\". Original Error:
18
+
Unable to lock the lock file: /tmp/hellodb/mongod.lock (Resource temporarily unavailable). Another mongod instance is already running on the /tmp/hellodb directory"
19
+
`;
20
+
21
+
exports[`MongodbInstance test events stdoutHandler() should emit "instanceError" when "excepetion in initAndListen" is thrown Location28596 1`] =`
22
+
"Instance Failed to start with \\"Location28596\\". Original Error:
23
+
Unable to determine status of lock file in the data directory /root: boost::filesystem::status: Permission denied: \\"/root/mongod.lock\\""
24
+
`;
25
+
26
+
exports[`MongodbInstance test events stdoutHandler() should emit "instanceError" when "excepetion in initAndListen" is thrown NonExistentPath 1`] =`
27
+
"Instance Failed to start with \\"NonExistentPath\\". Original Error:
28
+
Data directory /tmp/hello not found. Create the missing directory or specify another path using (1) the --dbpath command line option, or (2) by adding the 'storage.dbPath' option in the configuration file."
29
+
`;
30
+
31
+
exports[`MongodbInstance test events stdoutHandler() should emit "instanceError" when curl-open-ssl-3 is not found 1`] =`
32
+
"libcurl3 is not available on your system. Mongod requires it and cannot be started without it.
33
+
You should manually install libcurl3 or try to use an newer version of MongoDB"
34
+
`;
35
+
36
+
exports[`MongodbInstance test events stdoutHandler() should emit "instanceError" when curl-open-ssl-4 is not found 1`] =`
37
+
"libcurl4 is not available on your system. Mongod requires it and cannot be started without it.
38
+
You need to manually install libcurl4"
39
+
`;
40
+
41
+
exports[`MongodbInstance test events stdoutHandler() should emit "instanceError" when library is missing 1`] =`"Instance failed to start because a library is missing or cannot be opened: \\"libcrypto.so.10\\""`;
42
+
43
+
exports[`MongodbInstance test events stdoutHandler() should emit "instanceError" when port is already in use 1`] =`"Port \\"1001\\" already in use"`;
0 commit comments