blob: 2979827f0341ac86b5cbd28055730ca1abad3698 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*
* The test runs commands that are not allowed with security token: applyOps.
* @tags: [
* not_allowed_with_security_token,
* requires_non_retryable_commands,
* # applyOps is not supported on mongos
* assumes_against_mongod_not_mongos,
* # applyOps uses the oplog that require replication support
* requires_replication,
* # Tenant migrations don't support applyOps.
* tenant_migration_incompatible,
* ]
*/
(function() {
'use strict';
// SERVER-33854: This should fail and not cause any invalid memory access.
assert.commandFailed(db.adminCommand(
{applyOps: [{'op': 'c', 'ns': 'admin.$cmd', 'o': {applyOps: [{'op': 'i', 'o': {x: 1}}]}}]}));
})();
|