SERVER-126324 Add stub implementation of updateESECMKIdentifierList command (#54111)
GitOrigin-RevId: f941ed3ba5f3ce4c3a32f9b1e7fcc512f906bebd
This commit is contained in:
parent
cd4d6770ed
commit
c1fe003eec
@ -6428,6 +6428,21 @@ export const authCommandsLib = {
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
testname: "updateESECMKIdentifierList",
|
||||
command: {updateESECMKIdentifierList: 1},
|
||||
skipTest: () => {
|
||||
return !getBuildInfo().modules.includes("atlas");
|
||||
},
|
||||
testcases: [
|
||||
{
|
||||
runOnDb: adminDbName,
|
||||
roles: roles_hostManager,
|
||||
privileges: [{resource: {cluster: true}, actions: ["updateESECMKIdentifierList"]}],
|
||||
expectFail: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
testname: "getESECMKIdentifierListStatus",
|
||||
command: {getESECMKIdentifierListStatus: 1},
|
||||
|
||||
@ -805,6 +805,7 @@ let viewsCommandTests = {
|
||||
isAdminCommand: true,
|
||||
},
|
||||
update: {command: {update: "view", updates: [{q: {x: 1}, u: {x: 2}}]}, expectFailure: true},
|
||||
updateESECMKIdentifierList: {skip: isUnrelated},
|
||||
updateRole: {
|
||||
command: {
|
||||
updateRole: "testrole",
|
||||
|
||||
@ -3058,6 +3058,7 @@ const wcCommandsTests = {
|
||||
},
|
||||
},
|
||||
},
|
||||
updateESECMKIdentifierList: {skip: "does not accept write concern"},
|
||||
updateRole: {
|
||||
targetConfigServer: true,
|
||||
noop: {
|
||||
@ -4450,6 +4451,7 @@ const wcTimeseriesCommandsTests = {
|
||||
},
|
||||
},
|
||||
},
|
||||
updateESECMKIdentifierList: {skip: "does not accept write concern"},
|
||||
updateRole: wcCommandsTests["updateRole"],
|
||||
updateSearchIndex: {skip: "does not accept write concern"},
|
||||
updateUser: wcCommandsTests["updateRole"],
|
||||
|
||||
@ -1694,6 +1694,7 @@ const allCommands = {
|
||||
assert.commandWorked(conn.getDB(dbName).runCommand({drop: collName}));
|
||||
},
|
||||
},
|
||||
updateESECMKIdentifierList: {skip: "requires additional setup"},
|
||||
updateRole: {
|
||||
setUp: function (conn) {
|
||||
assert.commandWorked(conn.getDB(dbName).runCommand({createRole: "foo", privileges: [], roles: []}));
|
||||
|
||||
@ -468,6 +468,7 @@ const allCommands = {
|
||||
top: {skip: isNotAUserDataRead},
|
||||
transitionToShardedCluster: {skip: isNotAUserDataRead},
|
||||
update: {skip: isPrimaryOnly},
|
||||
updateESECMKIdentifierList: {skip: isNotAUserDataRead},
|
||||
updateRole: {skip: isPrimaryOnly},
|
||||
updateSearchIndex: {skip: isNotAUserDataRead},
|
||||
updateUser: {skip: isPrimaryOnly},
|
||||
|
||||
@ -1241,6 +1241,7 @@ const allCommands = {
|
||||
assert.commandWorked(conn.getDB(dbName).runCommand({drop: collName}));
|
||||
},
|
||||
},
|
||||
updateESECMKIdentifierList: {skip: "requires additional setup"},
|
||||
updateRole: {
|
||||
setUp: function (mongoS, withDirectConnections) {
|
||||
assert.commandWorked(
|
||||
|
||||
@ -976,6 +976,10 @@ const allTestCases = {
|
||||
},
|
||||
},
|
||||
},
|
||||
updateESECMKIdentifierList: {
|
||||
skip: "executes locally on mongos (not sent to any remote node)",
|
||||
conditional: true,
|
||||
},
|
||||
updateRole: {skip: "always targets the config server"},
|
||||
updateSearchIndex: {skip: "executes locally on mongos", conditional: true},
|
||||
updateUser: {skip: "always targets the config server"},
|
||||
@ -1464,6 +1468,7 @@ const allTestCases = {
|
||||
top: {skip: "TODO"},
|
||||
transitionToShardedCluster: {skip: "TODO"},
|
||||
update: {skip: "TODO"},
|
||||
updateESECMKIdentifierList: {skip: "TODO", conditional: true},
|
||||
updateRole: {skip: "TODO"},
|
||||
updateSearchIndex: {skip: "TODO"},
|
||||
updateUser: {skip: "TODO"},
|
||||
|
||||
@ -860,6 +860,7 @@ let testCases = {
|
||||
// use profiling. In the meantime, use logs.
|
||||
useLogs: true,
|
||||
},
|
||||
updateESECMKIdentifierList: {skip: "does not accept read or write concern"},
|
||||
updateRole: {
|
||||
setUp: function (conn) {
|
||||
assert.commandWorked(
|
||||
|
||||
@ -417,6 +417,7 @@ let testCases = {
|
||||
unshardCollection: {skip: "primary only"},
|
||||
untrackUnshardedCollection: {skip: "primary only"},
|
||||
update: {skip: "primary only"},
|
||||
updateESECMKIdentifierList: {skip: "does not return user data"},
|
||||
updateRole: {skip: "primary only"},
|
||||
updateSearchIndex: {skip: "primary only"},
|
||||
updateUser: {skip: "primary only"},
|
||||
|
||||
@ -517,6 +517,7 @@ let testCases = {
|
||||
unshardCollection: {skip: "primary only"},
|
||||
untrackUnshardedCollection: {skip: "primary only"},
|
||||
update: {skip: "primary only"},
|
||||
updateESECMKIdentifierList: {skip: "does not return user data"},
|
||||
updateRole: {skip: "primary only"},
|
||||
updateSearchIndex: {skip: "does not return user data"},
|
||||
updateUser: {skip: "primary only"},
|
||||
|
||||
@ -432,6 +432,7 @@ let testCases = {
|
||||
unshardCollection: {skip: "primary only"},
|
||||
untrackUnshardedCollection: {skip: "primary only"},
|
||||
update: {skip: "primary only"},
|
||||
updateESECMKIdentifierList: {skip: "does not return user data"},
|
||||
updateRole: {skip: "primary only"},
|
||||
updateSearchIndex: {skip: "does not return user data"},
|
||||
updateUser: {skip: "primary only"},
|
||||
|
||||
@ -215,6 +215,7 @@ enums:
|
||||
useTenant: "useTenant"
|
||||
useUUID: "useUUID"
|
||||
update: "update"
|
||||
updateESECMKIdentifierList: "updateESECMKIdentifierList"
|
||||
updateRole: "updateRole" # ID only
|
||||
updateUser: "updateUser" # ID only
|
||||
validate: "validate"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user