Skip to content

Commit bc8202b

Browse files
committed
remove changes
1 parent bf315db commit bc8202b

File tree

4 files changed

+93
-16
lines changed

4 files changed

+93
-16
lines changed

test/spec/change-streams/unified/change-streams-disambiguatedPaths.json

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
"runOnRequirements": [
2727
{
2828
"minServerVersion": "6.1.0",
29-
"maxServerVersion": "8.1.0",
3029
"topologies": [
3130
"replicaset",
31+
"sharded-replicaset",
3232
"load-balanced",
3333
"sharded"
3434
],
@@ -43,6 +43,70 @@
4343
}
4444
],
4545
"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+
},
46110
{
47111
"description": "disambiguatedPaths is present on updateDescription when an ambiguous path is present",
48112
"operations": [

test/spec/change-streams/unified/change-streams-disambiguatedPaths.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ createEntities:
1515

1616
runOnRequirements:
1717
- minServerVersion: "6.1.0"
18-
maxServerVersion: "8.1.0"
1918
topologies: [ replicaset, sharded-replicaset, load-balanced, sharded ]
2019
serverless: forbid
2120

@@ -25,6 +24,32 @@ initialData:
2524
documents: []
2625

2726
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+
2853
- description: "disambiguatedPaths is present on updateDescription when an ambiguous path is present"
2954
operations:
3055
- name: insertOne

test/spec/change-streams/unified/change-streams.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,7 @@
181181
"field": "array",
182182
"newSize": 2
183183
}
184-
],
185-
"disambiguatedPaths": {
186-
"$$unsetOrMatches": {
187-
"$$exists": true
188-
}
189-
}
184+
]
190185
}
191186
}
192187
}
@@ -1413,11 +1408,6 @@
14131408
"$$unsetOrMatches": {
14141409
"$$exists": true
14151410
}
1416-
},
1417-
"disambiguatedPaths": {
1418-
"$$unsetOrMatches": {
1419-
"$$exists": true
1420-
}
14211411
}
14221412
}
14231413
}

test/spec/change-streams/unified/change-streams.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ tests:
115115
"field": "array",
116116
"newSize": 2
117117
}
118-
],
119-
disambiguatedPaths: { $$unsetOrMatches: { $$exists: true } }
118+
]
120119
}
121120
}
122121

@@ -723,7 +722,6 @@ tests:
723722
updatedFields: { x: 2 }
724723
removedFields: []
725724
truncatedArrays: { $$unsetOrMatches: { $$exists: true } }
726-
disambiguatedPaths: { $$unsetOrMatches: { $$exists: true } }
727725
- name: iterateUntilDocumentOrError
728726
object: *changeStream0
729727
expectResult:

0 commit comments

Comments
 (0)