|
27 | 27 | using MongoDB.Driver.Core.TestHelpers; |
28 | 28 | using MongoDB.Driver.Core.TestHelpers.Logging; |
29 | 29 | using MongoDB.Driver.Core.TestHelpers.XunitExtensions; |
30 | | -using MongoDB.Driver.Encryption; |
31 | | -using MongoDB.Driver.TestHelpers; |
32 | 30 | using MongoDB.TestHelpers.XunitExtensions; |
33 | 31 | using Xunit; |
34 | 32 | using Xunit.Abstractions; |
@@ -410,36 +408,6 @@ public async Task MongoClient_bulkWrite_handles_getMore_error([Values(true, fals |
410 | 408 | eventCapturer.Events.Should().Contain(e => ((CommandStartedEvent)e).CommandName == "killCursors"); |
411 | 409 | } |
412 | 410 |
|
413 | | - // https://github.com/mongodb/specifications/blob/7517681e6a3186cb7f3114314a9fe1bc3a747b9f/source/crud/tests/README.md?plain=1#L371 |
414 | | - [Theory] |
415 | | - [ParameterAttributeData] |
416 | | - internal async Task MongoClient_bulkWrite_returns_error_for_unacknowledged_too_large_insert( |
417 | | - [Values(true, false)] bool async, |
418 | | - [Values(true, false)] bool isReplace) |
419 | | - { |
420 | | - RequireServer.Check().Supports(Feature.ClientBulkWrite).Serverless(false); |
421 | | - var maxDocumentSize = DriverTestConfiguration.GetConnectionDescription().MaxDocumentSize; |
422 | | - |
423 | | - var document = new BsonDocument() { { "a", new string('b', maxDocumentSize) } }; |
424 | | - BulkWriteModel[] models = isReplace |
425 | | - ? new[] { new BulkWriteReplaceOneModel<BsonDocument>("db.coll", Builders<BsonDocument>.Filter.Empty, document) } |
426 | | - : new[] { new BulkWriteInsertOneModel<BsonDocument>("db.coll", document) }; |
427 | | - |
428 | | - using var client = CreateMongoClient(null); |
429 | | - var bulkWriteOptions = new ClientBulkWriteOptions |
430 | | - { |
431 | | - WriteConcern = WriteConcern.Unacknowledged, |
432 | | - IsOrdered = false |
433 | | - }; |
434 | | - |
435 | | - var exception = async |
436 | | - ? await Record.ExceptionAsync(() => client.BulkWriteAsync(models, bulkWriteOptions)) |
437 | | - : Record.Exception(() => client.BulkWrite(models, bulkWriteOptions)); |
438 | | - |
439 | | - var bulkWriteException = exception.Should().BeOfType<ClientBulkWriteException>().Subject; |
440 | | - bulkWriteException.InnerException.Should().BeOfType<FormatException>(); |
441 | | - } |
442 | | - |
443 | 411 | // https://github.com/mongodb/specifications/blob/7517681e6a3186cb7f3114314a9fe1bc3a747b9f/source/crud/tests/README.md?plain=1#L422 |
444 | 412 | // |
445 | 413 | // This test is commented out because calculations in spec does not include "$db" and "lsid" fields of bulkWrite command. |
|
0 commit comments