mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
27 lines
592 B
JavaScript
27 lines
592 B
JavaScript
// Validate registration retries if the web server is down.
|
|
//
|
|
load("jstests/free_mon/libs/free_mon.js");
|
|
|
|
(function() {
|
|
'use strict';
|
|
|
|
let mock_web = new FreeMonWebServer(FAULT_FAIL_REGISTER);
|
|
|
|
mock_web.start();
|
|
|
|
let options = {
|
|
setParameter: "cloudFreeMonitoringEndpointURL=" + mock_web.getURL(),
|
|
enableFreeMonitoring: "on",
|
|
verbose: 1,
|
|
};
|
|
|
|
const conn = MongoRunner.runMongod(options);
|
|
assert.neq(null, conn, 'mongod was unable to start up');
|
|
|
|
mock_web.waitRegisters(3);
|
|
|
|
MongoRunner.stopMongod(conn);
|
|
|
|
mock_web.stop();
|
|
})();
|