Skip to content

Commit e2efaeb

Browse files
RUBY-3220 Add databaseName property to command events (#3031)
1 parent 55a7526 commit e2efaeb

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

  • spec/spec_tests/data/command_monitoring_unified

spec/spec_tests/data/command_monitoring_unified/find.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
description: "find"
22

3-
schemaVersion: "1.1"
3+
schemaVersion: "1.15"
44

55
createEntities:
66
- client:
@@ -56,6 +56,7 @@ tests:
5656
firstBatch:
5757
- { _id: 1, x: 11 }
5858
commandName: find
59+
databaseName: *databaseName
5960

6061
- description: "A successful find with options"
6162
operations:
@@ -98,6 +99,7 @@ tests:
9899
- { x: 33 }
99100
- { x: 22 }
100101
commandName: find
102+
databaseName: *databaseName
101103

102104
- description: "A successful find with showRecordId and returnKey"
103105
operations:
@@ -131,6 +133,7 @@ tests:
131133
- { _id: 4 }
132134
- { _id: 5 }
133135
commandName: find
136+
databaseName: *databaseName
134137

135138
- description: "A successful find with a getMore"
136139
operations:
@@ -162,6 +165,7 @@ tests:
162165
- { _id: 2, x: 22 }
163166
- { _id: 3, x: 33 }
164167
commandName: find
168+
databaseName: *databaseName
165169
- commandStartedEvent:
166170
command:
167171
getMore: { $$type: [ int, long ] }
@@ -179,6 +183,7 @@ tests:
179183
- { _id: 4, x: 44 }
180184
- { _id: 5, x: 55 }
181185
commandName: getMore
186+
databaseName: *databaseName
182187

183188
- description: "A successful find event with a getmore and the server kills the cursor (<= 4.4)"
184189
runOnRequirements:
@@ -216,6 +221,7 @@ tests:
216221
- { _id: 2, x: 22 }
217222
- { _id: 3, x: 33 }
218223
commandName: find
224+
databaseName: *databaseName
219225
- commandStartedEvent:
220226
command:
221227
getMore: { $$type: [ int, long ] }
@@ -232,6 +238,7 @@ tests:
232238
nextBatch:
233239
- { _id: 4, x: 44 }
234240
commandName: getMore
241+
databaseName: *databaseName
235242

236243
- description: "A failed find event"
237244
operations:
@@ -252,3 +259,4 @@ tests:
252259
databaseName: *databaseName
253260
- commandFailedEvent:
254261
commandName: find
262+
databaseName: *databaseName

0 commit comments

Comments
 (0)