File tree 4 files changed +14
-93
lines changed
test/spec/change-streams/unified
4 files changed +14
-93
lines changed Original file line number Diff line number Diff line change 28
28
"minServerVersion" : " 6.1.0" ,
29
29
"topologies" : [
30
30
" replicaset" ,
31
- " sharded-replicaset" ,
32
31
" load-balanced" ,
33
32
" sharded"
34
33
],
43
42
}
44
43
],
45
44
"tests" : [
46
- {
47
- "description" : " disambiguatedPaths is not present when showExpandedEvents is false/unset" ,
48
- "operations" : [
49
- {
50
- "name" : " insertOne" ,
51
- "object" : " collection0" ,
52
- "arguments" : {
53
- "document" : {
54
- "_id" : 1 ,
55
- "a" : {
56
- "1" : 1
57
- }
58
- }
59
- }
60
- },
61
- {
62
- "name" : " createChangeStream" ,
63
- "object" : " collection0" ,
64
- "arguments" : {
65
- "pipeline" : []
66
- },
67
- "saveResultAsEntity" : " changeStream0"
68
- },
69
- {
70
- "name" : " updateOne" ,
71
- "object" : " collection0" ,
72
- "arguments" : {
73
- "filter" : {
74
- "_id" : 1
75
- },
76
- "update" : {
77
- "$set" : {
78
- "a.1" : 2
79
- }
80
- }
81
- }
82
- },
83
- {
84
- "name" : " iterateUntilDocumentOrError" ,
85
- "object" : " changeStream0" ,
86
- "expectResult" : {
87
- "operationType" : " update" ,
88
- "ns" : {
89
- "db" : " database0" ,
90
- "coll" : " collection0"
91
- },
92
- "updateDescription" : {
93
- "updatedFields" : {
94
- "$$exists" : true
95
- },
96
- "removedFields" : {
97
- "$$exists" : true
98
- },
99
- "truncatedArrays" : {
100
- "$$exists" : true
101
- },
102
- "disambiguatedPaths" : {
103
- "$$exists" : false
104
- }
105
- }
106
- }
107
- }
108
- ]
109
- },
110
45
{
111
46
"description" : " disambiguatedPaths is present on updateDescription when an ambiguous path is present" ,
112
47
"operations" : [
Original file line number Diff line number Diff line change @@ -24,32 +24,6 @@ initialData:
24
24
documents : []
25
25
26
26
tests :
27
- - description : " disambiguatedPaths is not present when showExpandedEvents is false/unset"
28
- operations :
29
- - name : insertOne
30
- object : *collection0
31
- arguments :
32
- document : { _id: 1, 'a': { '1': 1 } }
33
- - name : createChangeStream
34
- object : *collection0
35
- arguments : { pipeline: [] }
36
- saveResultAsEntity : &changeStream0 changeStream0
37
- - name : updateOne
38
- object : *collection0
39
- arguments :
40
- filter : { _id: 1 }
41
- update : { $set: { 'a.1': 2 } }
42
- - name : iterateUntilDocumentOrError
43
- object : *changeStream0
44
- expectResult :
45
- operationType : " update"
46
- ns : { db: *database0, coll: *collection0 }
47
- updateDescription :
48
- updatedFields : { $$exists: true }
49
- removedFields : { $$exists: true }
50
- truncatedArrays : { $$exists: true }
51
- disambiguatedPaths : { $$exists: false }
52
-
53
27
- description : " disambiguatedPaths is present on updateDescription when an ambiguous path is present"
54
28
operations :
55
29
- name : insertOne
Original file line number Diff line number Diff line change 181
181
"field" : " array" ,
182
182
"newSize" : 2
183
183
}
184
- ]
184
+ ],
185
+ "disambiguatedPaths" : {
186
+ "$$unsetOrMatches" : {
187
+ "$$exists" : true
188
+ }
189
+ }
185
190
}
186
191
}
187
192
}
1408
1413
"$$unsetOrMatches" : {
1409
1414
"$$exists" : true
1410
1415
}
1416
+ },
1417
+ "disambiguatedPaths" : {
1418
+ "$$unsetOrMatches" : {
1419
+ "$$exists" : true
1420
+ }
1411
1421
}
1412
1422
}
1413
1423
}
Original file line number Diff line number Diff line change @@ -115,7 +115,8 @@ tests:
115
115
" field " : " array" ,
116
116
" newSize " : 2
117
117
}
118
- ]
118
+ ],
119
+ disambiguatedPaths : { $$unsetOrMatches: { $$exists: true } }
119
120
}
120
121
}
121
122
@@ -722,6 +723,7 @@ tests:
722
723
updatedFields : { x: 2 }
723
724
removedFields : []
724
725
truncatedArrays : { $$unsetOrMatches: { $$exists: true } }
726
+ disambiguatedPaths : { $$unsetOrMatches: { $$exists: true } }
725
727
- name : iterateUntilDocumentOrError
726
728
object : *changeStream0
727
729
expectResult :
You can’t perform that action at this time.
0 commit comments