summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/change_stream_pre_image_time_based_expiration_replset.js
blob: 0f50af88ebde8e423dd1ac64da48f77b36abe79e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Tests time-based pre-image retention policy of change stream pre-images remover job.
// @tags: [
//  requires_fcv_60,
//  featureFlagClusterWideConfig,
//  requires_replication,
// ]
(function() {
"use strict";

load("jstests/noPassthrough/libs/change_stream_pre_image_time_based_expiration_utils.js");

// Tests pre-image time based expiration on a replica-set.
(function testChangeStreamPreImagesforTimeBasedExpirationOnReplicaSet() {
    const replSetTest = new ReplSetTest({name: "replSet", nodes: 3});
    replSetTest.startSet();
    replSetTest.initiate();

    const conn = replSetTest.getPrimary();
    const primary = replSetTest.getPrimary();
    testTimeBasedPreImageRetentionPolicy(conn, primary);
    replSetTest.stopSet();
})();
}());