File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed
spec_tests/data/command_monitoring Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -376,9 +376,11 @@ def options
376
376
arguments . merge ( arguments [ 'options' ] || { } ) . each do |spec_k , v |
377
377
ruby_k = ::Utils . underscore ( spec_k ) . to_sym
378
378
379
- if v . is_a? ( Hash ) && v [ '$numberLong' ]
380
- v = v [ '$numberLong' ] . to_i
381
- end
379
+ ruby_k = {
380
+ min : :min_value ,
381
+ max : :max_value ,
382
+ show_record_id : :show_disk_loc
383
+ } [ ruby_k ] || ruby_k
382
384
383
385
if respond_to? ( "transform_#{ ruby_k } " , true )
384
386
v = send ( "transform_#{ ruby_k } " , v )
Original file line number Diff line number Diff line change @@ -43,14 +43,13 @@ tests:
43
43
filter : { _id: { $gt: 1 } }
44
44
sort : { _id: 1 }
45
45
skip : {"$numberLong": "2"}
46
- modifiers :
47
- $comment : " test"
48
- $hint : { _id: 1 }
49
- $max : { _id: 6 }
50
- $maxTimeMS : 6000
51
- $min : { _id: 0 }
52
- $returnKey : false
53
- $showDiskLoc : false
46
+ comment : " test"
47
+ hint : { _id: 1 }
48
+ max : { _id: 6 }
49
+ maxTimeMS : 6000
50
+ min : { _id: 0 }
51
+ returnKey : false
52
+ showRecordId : false
54
53
expectations :
55
54
-
56
55
command_started_event :
@@ -195,8 +194,9 @@ tests:
195
194
- { $numberLong: "42" }
196
195
command_name : " killCursors"
197
196
-
198
- description : " A successful find event with a getmore and the server kills the cursor"
197
+ description : " A successful find event with a getmore and the server kills the cursor (<= 4.4) "
199
198
ignore_if_server_version_less_than : " 3.1"
199
+ ignore_if_server_version_greater_than : " 4.4"
200
200
ignore_if_topology_type :
201
201
- " sharded"
202
202
operation :
You can’t perform that action at this time.
0 commit comments