diff --git a/tests/UnifiedSpecTests/run-command/runCommand.json b/tests/UnifiedSpecTests/run-command/runCommand.json index 9c7f912f9..fde9de92e 100644 --- a/tests/UnifiedSpecTests/run-command/runCommand.json +++ b/tests/UnifiedSpecTests/run-command/runCommand.json @@ -123,6 +123,68 @@ } ] }, + { + "description": "always gossips the $clusterTime on the sent command", + "runOnRequirements": [ + { + "topologies": [ + "replicaset", + "sharded" + ] + } + ], + "operations": [ + { + "name": "runCommand", + "object": "db", + "arguments": { + "commandName": "ping", + "command": { + "ping": 1 + } + }, + "expectResult": { + "ok": 1 + } + }, + { + "name": "runCommand", + "object": "db", + "arguments": { + "commandName": "ping", + "command": { + "ping": 1 + } + }, + "expectResult": { + "ok": 1 + } + } + ], + "expectEvents": [ + { + "client": "client", + "events": [ + { + "commandStartedEvent": { + "commandName": "ping" + } + }, + { + "commandStartedEvent": { + "command": { + "ping": 1, + "$clusterTime": { + "$$exists": true + } + }, + "commandName": "ping" + } + } + ] + } + ] + }, { "description": "attaches the provided session lsid to given command", "operations": [ @@ -167,7 +229,6 @@ { "topologies": [ "replicaset", - "sharded-replicaset", "load-balanced", "sharded" ] @@ -346,7 +407,7 @@ "insert": "collection", "documents": [ { - "_id": 1 + "foo": "bar" } ], "ordered": true @@ -431,7 +492,7 @@ { "minServerVersion": "4.2", "topologies": [ - "sharded-replicaset", + "sharded", "load-balanced" ] } @@ -452,7 +513,7 @@ "insert": "collection", "documents": [ { - "_id": 2 + "foo": "transaction" } ], "ordered": true @@ -480,7 +541,7 @@ "insert": "collection", "documents": [ { - "_id": 2 + "foo": "transaction" } ], "ordered": true,