Skip to content

Commit abaed98

Browse files
committed
PHON-6: Split normal SSL and X509 servers
1 parent 40799e5 commit abaed98

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed

scripts/presets/standalone-ssl.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"name": "mongod",
33
"id" : "STANDALONE-SSL",
4-
"auth_key": "secret",
5-
"login": "root",
6-
"password": "toor",
74
"procParams": {
85
"dbpath": "/tmp/standalone-ssl/",
96
"ipv6": true,

scripts/presets/standalone-x509.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+

scripts/start-servers.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@
2020
$auth = $orch->start("standalone-auth.json");
2121
printf("Standalone Auth server running on: %s\n", $auth);
2222

23+
$x509 = $orch->start("standalone-x509.json");
24+
printf("Standalone X509 Auth server running on: %s\n", $x509);
25+

tests/utils/basic.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ if (!$orch->ping()) {
1717
$consts = array(
1818
"MONGODB_URI" => $orch->getURI("standalone.json"),
1919
"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"),
2023
"DATABASE_NAME" => "phongo",
2124
"COLLECTION_NAME" => makeCollectionNameFromFilename($_SERVER["SCRIPT_FILENAME"]),
2225
"DEBUG_DIR" => sys_get_temp_dir() . "/PHONGO-TESTS/",

0 commit comments

Comments
 (0)