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 2929 "maxServerVersion" : " 8.1.0" ,
3030 "topologies" : [
3131 " replicaset" ,
32- " sharded-replicaset" ,
3332 " load-balanced" ,
3433 " sharded"
3534 ],
4443 }
4544 ],
4645 "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- },
11146 {
11247 "description" : " disambiguatedPaths is present on updateDescription when an ambiguous path is present" ,
11348 "operations" : [
Original file line number Diff line number Diff line change @@ -25,32 +25,6 @@ initialData:
2525 documents : []
2626
2727tests :
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-
5428 - description : " disambiguatedPaths is present on updateDescription when an ambiguous path is present"
5529 operations :
5630 - name : insertOne
Original file line number Diff line number Diff line change 181181 "field" : " array" ,
182182 "newSize" : 2
183183 }
184- ]
184+ ],
185+ "disambiguatedPaths" : {
186+ "$$unsetOrMatches" : {
187+ "$$exists" : true
188+ }
189+ }
185190 }
186191 }
187192 }
14081413 "$$unsetOrMatches" : {
14091414 "$$exists" : true
14101415 }
1416+ },
1417+ "disambiguatedPaths" : {
1418+ "$$unsetOrMatches" : {
1419+ "$$exists" : true
1420+ }
14111421 }
14121422 }
14131423 }
Original file line number Diff line number Diff line change @@ -115,7 +115,8 @@ tests:
115115 " field " : " array" ,
116116 " newSize " : 2
117117 }
118- ]
118+ ],
119+ disambiguatedPaths : { $$unsetOrMatches: { $$exists: true } }
119120 }
120121 }
121122
@@ -722,6 +723,7 @@ tests:
722723 updatedFields : { x: 2 }
723724 removedFields : []
724725 truncatedArrays : { $$unsetOrMatches: { $$exists: true } }
726+ disambiguatedPaths : { $$unsetOrMatches: { $$exists: true } }
725727 - name : iterateUntilDocumentOrError
726728 object : *changeStream0
727729 expectResult :
You can’t perform that action at this time.
0 commit comments