You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/MongoDB.Driver.Tests/Specifications/client-side-encryption/prose-tests/ClientEncryptionProseTests.cs
+48-19Lines changed: 48 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@
16
16
usingSystem;
17
17
usingSystem.Collections.Generic;
18
18
usingSystem.Collections.ObjectModel;
19
+
usingSystem.IO;
19
20
usingSystem.Linq;
20
21
usingSystem.Net;
21
22
usingSystem.Net.Http;
@@ -339,36 +340,28 @@ public void BypassSpawningMongocryptdViaMongocryptdBypassSpawnTest(
339
340
kmsProviderFilter: "local",
340
341
extraOptions:extraOptions))
341
342
{
342
-
var datakeys =GetCollection(client,__keyVaultCollectionNamespace);
343
-
var externalKey =JsonFileReader.Instance.Documents["external.external-key.json"];
344
-
Insert(datakeys, async,externalKey);
345
-
346
343
var coll =GetCollection(clientEncrypted,__collCollectionNamespace);
347
344
var exception =Record.Exception(()=>Insert(coll,async,newBsonDocument("encrypted", "test")));
348
345
349
346
AssertInnerEncryptionException<TimeoutException>(exception,"A timeout occurred after 10000ms selecting a server");
using (var mongocryptdClient =newDisposableMongoClient(newMongoClient("mongodb://localhost:27021/?serverSelectionTimeoutMS=1000"),CreateLogger<DisposableMongoClient>()))
372
365
{
373
366
var coll = GetCollection(clientEncrypted,__collCollectionNamespace);
0 commit comments