@@ -5,7 +5,9 @@ import XCTest
5
5
6
6
// Files to skip because we don't currently support the operations they test.
7
7
private var skippedFiles = [
8
+ // TODO SWIFT-147: enable this
8
9
" bulkWrite-arrayFilters " ,
10
+ // TODO SWIFT-156: enable these
9
11
" findOneAndDelete-collation " ,
10
12
" findOneAndDelete " ,
11
13
" findOneAndReplace-collation " ,
@@ -132,11 +134,15 @@ private func makeCrudTest(_ doc: Document) throws -> CrudTest {
132
134
// Maps operation names to the appropriate test class to use for them.
133
135
private var testTypeMap : [ String : CrudTest . Type ] = [
134
136
" aggregate " : AggregateTest . self,
137
+ " bulkWrite " : BulkWriteTest . self,
135
138
" count " : CountTest . self,
136
139
" deleteMany " : DeleteTest . self,
137
140
" deleteOne " : DeleteTest . self,
138
141
" distinct " : DistinctTest . self,
139
142
" find " : FindTest . self,
143
+ " findOneAndDelete " : FindOneAndDeleteTest . self,
144
+ " findOneAndUpdate " : FindOneAndUpdateTest . self,
145
+ " findOneAndReplace " : FindOneAndReplaceTest . self,
140
146
" insertMany " : InsertManyTest . self,
141
147
" insertOne " : InsertOneTest . self,
142
148
" replaceOne " : ReplaceOneTest . self,
@@ -220,6 +226,12 @@ private class AggregateTest: CrudTest {
220
226
}
221
227
}
222
228
229
+ private class BulkWriteTest : CrudTest {
230
+ override func execute( usingCollection coll: MongoCollection < Document > ) throws {
231
+ XCTFail ( " Unimplemented " )
232
+ }
233
+ }
234
+
223
235
/// A class for executing `count` tests
224
236
private class CountTest : CrudTest {
225
237
override func execute( usingCollection coll: MongoCollection < Document > ) throws {
@@ -271,6 +283,27 @@ private class FindTest: CrudTest {
271
283
}
272
284
}
273
285
286
+ /// A class for executing `findOneAndDelete` tests
287
+ private class FindOneAndDeleteTest : CrudTest {
288
+ override func execute( usingCollection coll: MongoCollection < Document > ) throws {
289
+ XCTFail ( " Unimplemented " )
290
+ }
291
+ }
292
+
293
+ /// A class for executing `findOneAndUpdate` tests
294
+ private class FindOneAndReplaceTest : CrudTest {
295
+ override func execute( usingCollection coll: MongoCollection < Document > ) throws {
296
+ XCTFail ( " Unimplemented " )
297
+ }
298
+ }
299
+
300
+ /// A class for executing `findOneAndReplace` tests
301
+ private class FindOneAndUpdateTest : CrudTest {
302
+ override func execute( usingCollection coll: MongoCollection < Document > ) throws {
303
+ XCTFail ( " Unimplemented " )
304
+ }
305
+ }
306
+
274
307
/// A class for executing `insertMany` tests
275
308
private class InsertManyTest : CrudTest {
276
309
override func execute( usingCollection coll: MongoCollection < Document > ) throws {
0 commit comments