summaryrefslogtreecommitdiff
path: root/jstests/ocsp
diff options
context:
space:
mode:
authorShreyas Kalyan <shreyas.kalyan@10gen.com>2020-02-04 17:47:00 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-27 18:44:57 +0000
commit881ac03beb18b32c1f810e150fcda889d7ca5d79 (patch)
tree2030b214f4c567fe538b6e534cdc483d38ff7ed9 /jstests/ocsp
parent7250f407321e70bcb76bb1e21a7679670d29919d (diff)
downloadmongo-881ac03beb18b32c1f810e150fcda889d7ca5d79.tar.gz
SERVER-45798 Infrastructure for Caching OCSP responses for the Client
Diffstat (limited to 'jstests/ocsp')
-rw-r--r--jstests/ocsp/ocsp_basic.js6
-rw-r--r--jstests/ocsp/ocsp_stapling.js6
2 files changed, 7 insertions, 5 deletions
diff --git a/jstests/ocsp/ocsp_basic.js b/jstests/ocsp/ocsp_basic.js
index ab9439fcc67..81a19635d98 100644
--- a/jstests/ocsp/ocsp_basic.js
+++ b/jstests/ocsp/ocsp_basic.js
@@ -10,7 +10,7 @@ if (determineSSLProvider() != "openssl") {
return;
}
-let mock_ocsp = new MockOCSPServer();
+let mock_ocsp = new MockOCSPServer("", 1);
mock_ocsp.start();
const ocsp_options = {
@@ -29,11 +29,13 @@ assert.doesNotThrow(() => {
conn = MongoRunner.runMongod(ocsp_options);
});
+sleep(10000);
+
mock_ocsp.stop();
// Test Scenario when Mock OCSP Server replies stating
// that the OCSP status of the client cert is revoked.
-mock_ocsp = new MockOCSPServer(FAULT_REVOKED);
+mock_ocsp = new MockOCSPServer(FAULT_REVOKED, 1);
mock_ocsp.start();
assert.throws(() => {
new Mongo(conn.host);
diff --git a/jstests/ocsp/ocsp_stapling.js b/jstests/ocsp/ocsp_stapling.js
index b1162b5bff2..4d7e3c0532b 100644
--- a/jstests/ocsp/ocsp_stapling.js
+++ b/jstests/ocsp/ocsp_stapling.js
@@ -14,7 +14,7 @@ if (!supportsStapling()) {
return;
}
-let mock_ocsp = new MockOCSPServer();
+let mock_ocsp = new MockOCSPServer("", 1000);
mock_ocsp.start();
const ocsp_options = {
@@ -39,7 +39,7 @@ assert.doesNotThrow(() => {
});
mock_ocsp.stop();
-mock_ocsp = new MockOCSPServer(FAULT_REVOKED);
+mock_ocsp = new MockOCSPServer(FAULT_REVOKED, 1000);
mock_ocsp.start();
assert.doesNotThrow(() => {
new Mongo(conn.host);
@@ -63,7 +63,7 @@ assert.throws(() => {
});
mock_ocsp.stop();
-mock_ocsp = new MockOCSPServer();
+mock_ocsp = new MockOCSPServer("", 1000);
mock_ocsp.start();
assert.throws(() => {