@@ -95,75 +95,3 @@ tests:
95
95
object : *collection
96
96
arguments : {filter: *null_id_filter}
97
97
expectResult : 1
98
-
99
- - description : inserting _id with type undefined via insertOne
100
- operations :
101
- - name : insertOne
102
- object : *collection
103
- arguments : {document: &undefined_id {_id: { $undefined: true }}}
104
- - name : countDocuments
105
- object : *collection
106
- arguments : {filter: &undefined_id_filter {_id: {$type: 'undefined'}}}
107
- expectResult : 1
108
-
109
- - description : inserting _id with type undefined via insertMany
110
- operations :
111
- - name : insertMany
112
- object : *collection
113
- arguments : {documents: [*undefined_id]}
114
- - name : countDocuments
115
- object : *collection
116
- arguments : {filter: *undefined_id_filter}
117
- expectResult : 1
118
-
119
- - description : inserting _id with type undefined via updateOne
120
- operations :
121
- - name : updateOne
122
- object : *collection
123
- arguments : {filter: *undefined_id, update: {$unset: {a: ''}}, upsert: true}
124
- - name : countDocuments
125
- object : *collection
126
- arguments : {filter: *undefined_id_filter}
127
- expectResult : 1
128
-
129
- - description : inserting _id with type undefined via updateMany
130
- operations :
131
- - name : updateMany
132
- object : *collection
133
- arguments : {filter: *undefined_id, update: {$unset: {a: ''}}, upsert: true}
134
- - name : countDocuments
135
- object : *collection
136
- arguments : {filter: *undefined_id_filter}
137
- expectResult : 1
138
-
139
- - description : inserting _id with type undefined via replaceOne
140
- operations :
141
- - name : replaceOne
142
- object : *collection
143
- arguments : {filter: {}, replacement: *undefined_id, upsert: true}
144
- - name : countDocuments
145
- object : *collection
146
- arguments : {filter: *undefined_id_filter}
147
- expectResult : 1
148
-
149
- - description : inserting _id with type undefined via bulkWrite
150
- operations :
151
- - name : bulkWrite
152
- object : *collection
153
- arguments : {requests: [{insertOne: {document: *undefined_id}}]}
154
- - name : countDocuments
155
- object : *collection
156
- arguments : {filter: *undefined_id_filter}
157
- expectResult : 1
158
-
159
- - description : inserting _id with type undefined via clientBulkWrite
160
- runOnRequirements :
161
- - minServerVersion : ' 8.0'
162
- operations :
163
- - name : clientBulkWrite
164
- object : client
165
- arguments : {models: [{insertOne: {namespace: crud_id.type_tests, document: *undefined_id}}]}
166
- - name : countDocuments
167
- object : *collection
168
- arguments : {filter: *undefined_id_filter}
169
- expectResult : 1
0 commit comments