File tree Expand file tree Collapse file tree 4 files changed +14
-93
lines changed
test/spec/change-streams/unified Expand file tree Collapse file tree 4 files changed +14
-93
lines changed Original file line number Diff line number Diff line change 29
29
"maxServerVersion" : " 8.1.0" ,
30
30
"topologies" : [
31
31
" replicaset" ,
32
- " sharded-replicaset" ,
33
32
" load-balanced" ,
34
33
" sharded"
35
34
],
44
43
}
45
44
],
46
45
"tests" : [
47
- {
48
- "description" : " disambiguatedPaths is not present when showExpandedEvents is false/unset" ,
49
- "operations" : [
50
- {
51
- "name" : " insertOne" ,
52
- "object" : " collection0" ,
53
- "arguments" : {
54
- "document" : {
55
- "_id" : 1 ,
56
- "a" : {
57
- "1" : 1
58
- }
59
- }
60
- }
61
- },
62
- {
63
- "name" : " createChangeStream" ,
64
- "object" : " collection0" ,
65
- "arguments" : {
66
- "pipeline" : []
67
- },
68
- "saveResultAsEntity" : " changeStream0"
69
- },
70
- {
71
- "name" : " updateOne" ,
72
- "object" : " collection0" ,
73
- "arguments" : {
74
- "filter" : {
75
- "_id" : 1
76
- },
77
- "update" : {
78
- "$set" : {
79
- "a.1" : 2
80
- }
81
- }
82
- }
83
- },
84
- {
85
- "name" : " iterateUntilDocumentOrError" ,
86
- "object" : " changeStream0" ,
87
- "expectResult" : {
88
- "operationType" : " update" ,
89
- "ns" : {
90
- "db" : " database0" ,
91
- "coll" : " collection0"
92
- },
93
- "updateDescription" : {
94
- "updatedFields" : {
95
- "$$exists" : true
96
- },
97
- "removedFields" : {
98
- "$$exists" : true
99
- },
100
- "truncatedArrays" : {
101
- "$$exists" : true
102
- },
103
- "disambiguatedPaths" : {
104
- "$$exists" : false
105
- }
106
- }
107
- }
108
- }
109
- ]
110
- },
111
46
{
112
47
"description" : " disambiguatedPaths is present on updateDescription when an ambiguous path is present" ,
113
48
"operations" : [
Original file line number Diff line number Diff line change @@ -25,32 +25,6 @@ initialData:
25
25
documents : []
26
26
27
27
tests :
28
- - description : " disambiguatedPaths is not present when showExpandedEvents is false/unset"
29
- operations :
30
- - name : insertOne
31
- object : *collection0
32
- arguments :
33
- document : { _id: 1, 'a': { '1': 1 } }
34
- - name : createChangeStream
35
- object : *collection0
36
- arguments : { pipeline: [] }
37
- saveResultAsEntity : &changeStream0 changeStream0
38
- - name : updateOne
39
- object : *collection0
40
- arguments :
41
- filter : { _id: 1 }
42
- update : { $set: { 'a.1': 2 } }
43
- - name : iterateUntilDocumentOrError
44
- object : *changeStream0
45
- expectResult :
46
- operationType : " update"
47
- ns : { db: *database0, coll: *collection0 }
48
- updateDescription :
49
- updatedFields : { $$exists: true }
50
- removedFields : { $$exists: true }
51
- truncatedArrays : { $$exists: true }
52
- disambiguatedPaths : { $$exists: false }
53
-
54
28
- description : " disambiguatedPaths is present on updateDescription when an ambiguous path is present"
55
29
operations :
56
30
- 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