Skip to content

Commit

Permalink
PHPLIB-1205: Sync runCommand spec tests for removal of "sharded-repli…
Browse files Browse the repository at this point in the history
…caset"

Synced with mongodb/specifications@9d7ceed

Includes some changes from pending runCursorCommand spec work (PHPLIB-1077).
  • Loading branch information
jmikola committed Jul 19, 2023
1 parent 0c1b8a6 commit 3c5dde6
Showing 1 changed file with 66 additions and 5 deletions.
71 changes: 66 additions & 5 deletions tests/UnifiedSpecTests/run-command/runCommand.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -167,7 +229,6 @@
{
"topologies": [
"replicaset",
"sharded-replicaset",
"load-balanced",
"sharded"
]
Expand Down Expand Up @@ -346,7 +407,7 @@
"insert": "collection",
"documents": [
{
"_id": 1
"foo": "bar"
}
],
"ordered": true
Expand Down Expand Up @@ -431,7 +492,7 @@
{
"minServerVersion": "4.2",
"topologies": [
"sharded-replicaset",
"sharded",
"load-balanced"
]
}
Expand All @@ -452,7 +513,7 @@
"insert": "collection",
"documents": [
{
"_id": 2
"foo": "transaction"
}
],
"ordered": true
Expand Down Expand Up @@ -480,7 +541,7 @@
"insert": "collection",
"documents": [
{
"_id": 2
"foo": "transaction"
}
],
"ordered": true,
Expand Down

0 comments on commit 3c5dde6

Please sign in to comment.