File tree Expand file tree Collapse file tree 4 files changed +29
-3
lines changed Expand file tree Collapse file tree 4 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " mongod" ,
3
3
"id" : " STANDALONE-SSL" ,
4
- "auth_key" : " secret" ,
5
- "login" : " root" ,
6
- "password" : " toor" ,
7
4
"procParams" : {
8
5
"dbpath" : " /tmp/standalone-ssl/" ,
9
6
"ipv6" : true ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " mongod" ,
3
+ "id" : " STANDALONE-X509" ,
4
+ "auth_key" : " secret" ,
5
+ "login" : " root" ,
6
+ "password" : " toor" ,
7
+ "procParams" : {
8
+ "dbpath" : " /tmp/standalone-x509/" ,
9
+ "ipv6" : true ,
10
+ "logappend" : true ,
11
+ "logpath" : " /tmp/standalone-x509/m.log" ,
12
+ "journal" : true ,
13
+ "port" : 2300 ,
14
+ "setParameter" : {"enableTestCommands" : 1 }
15
+ },
16
+ "sslParams" : {
17
+ "sslCAFile" : " /phongo/scripts/ssl/ca.pem" ,
18
+ "sslOnNormalPorts" : true ,
19
+ "sslPEMKeyFile" : " /phongo/scripts/ssl/server.pem" ,
20
+ "sslWeakCertificateValidation" : true
21
+ }
22
+ }
23
+
Original file line number Diff line number Diff line change 20
20
$ auth = $ orch ->start ("standalone-auth.json " );
21
21
printf ("Standalone Auth server running on: %s \n" , $ auth );
22
22
23
+ $ x509 = $ orch ->start ("standalone-x509.json " );
24
+ printf ("Standalone X509 Auth server running on: %s \n" , $ x509 );
25
+
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ if (!$orch->ping()) {
17
17
$ consts = array (
18
18
"MONGODB_URI " => $ orch ->getURI ("standalone.json " ),
19
19
"MONGODB_CLEANUP_URI " => $ orch ->getURI ("standalone.json " ),
20
+ "MONGODB_STANDALONE_URI " => $ orch ->getURI ("standalone.json " ),
21
+ "MONGODB_STANDALONE_AUTH_URI " => $ orch ->getURI ("standalone-auth.json " ),
22
+ "MONGODB_STANDALONE_SSL_URI " => $ orch ->getURI ("standalone-ssl.json " ),
20
23
"DATABASE_NAME " => "phongo " ,
21
24
"COLLECTION_NAME " => makeCollectionNameFromFilename ($ _SERVER ["SCRIPT_FILENAME " ]),
22
25
"DEBUG_DIR " => sys_get_temp_dir () . "/PHONGO-TESTS/ " ,
You can’t perform that action at this time.
0 commit comments