blob: 83102fe0e8e240b6c1b3d873cf246455181888ef (
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
|
// Test that the 'setChangeStreamState' and 'getChangeStreamState' commands work as expected in the
// multi-tenant sharded cluster environment for various cases.
// @tags: [
// featureFlagMongoStore,
// requires_fcv_61,
// ]
(function() {
"use strict";
const shardingTest = new ShardingTest({
shards: 2,
other: {configOptions: {setParameter: {featureFlagServerlessChangeStreams: true}}}
});
// TODO SERVER-68341 Implement tests for mongoQ and ensure that the change collection is not enabled
// on the config server.
const configPrimary = shardingTest.configRS.getPrimary();
assert.commandFailedWithCode(
configPrimary.getDB("admin").runCommand({setChangeStreamState: 1, enabled: true}),
ErrorCodes.CommandNotSupported);
assert.commandFailedWithCode(configPrimary.getDB("admin").runCommand({getChangeStreamState: 1}),
ErrorCodes.CommandNotSupported);
shardingTest.stop();
}());
|