diff options
Diffstat (limited to 'jstests/auth/lib')
-rw-r--r-- | jstests/auth/lib/commands_lib.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/auth/lib/commands_lib.js b/jstests/auth/lib/commands_lib.js index 1d60c7aa308..170223762b4 100644 --- a/jstests/auth/lib/commands_lib.js +++ b/jstests/auth/lib/commands_lib.js @@ -6629,12 +6629,12 @@ export const authCommandsLib = { ] }, { - // Test that only clusterManager has permission to run $queryStats + // Test that only clusterManager has permission to run $telemetry testname: "testTelemetryReadPrivilege", - command: {aggregate: 1, pipeline: [{$queryStats: {}}], cursor: {}}, + command: {aggregate: 1, pipeline: [{$telemetry: {}}], cursor: {}}, skipSharded: false, skipTest: (conn) => { - return !TestData.setParameters.featureFlagQueryStats; + return !TestData.setParameters.featureFlagTelemetry; }, testcases: [{runOnDb: adminDbName, roles: roles_clusterManager}] }, |