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
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -85,8 +85,8 @@ public ClientEncryptionProseTests(ITestOutputHelper testOutputHelper)
exception.Should().BeOfType<MongoCommandException>().Which.Message.Should().Contain("BSON field 'create.encryptedFields.fields.keyId' is the wrong type 'bool', expected type 'binData'");
vardataKey=createCollectionOptions.EncryptedFields["fields"].AsBsonArray[0].AsBsonDocument["keyId"].AsGuid;// get generated datakey
146
+
varencryptedValue=ExplicitEncrypt(clientEncryption,newEncryptOptions(algorithm:EncryptionAlgorithm.AEAD_AES_256_CBC_HMAC_SHA_512_Deterministic,keyId:dataKey),"123-45-6789",async);// use explicit encryption to encrypt data before inserting
147
+
Insert(collection,async,newBsonDocument("ssn", encryptedValue));// this still fails as in case 1
148
+
}
149
+
break;
141
150
default:thrownew Exception($"Unexpected test case{testCase}.");
0 commit comments