blob: de98e038ac677f3bbcd42c555f92220460b534d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Validate resend registration works in a replica set
//
load("jstests/free_mon/libs/free_mon.js");
(function() {
'use strict';
let mock_web = new FreeMonWebServer(FAULT_RESEND_REGISTRATION_ONCE);
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');
WaitForRegistration(conn);
mock_web.waitRegisters(2);
MongoRunner.stopMongod(conn);
mock_web.stop();
})();
|