Skip to content

Commit cc0cc9d

Browse files
CSHARP-3936: Disable cert configuring where it's not required. (#685)
CSHARP-3936: Disable cert configuring where it's not required.
1 parent eecbb01 commit cc0cc9d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/MongoDB.Driver.Tests/Specifications/client-side-encryption/prose-tests/ClientEncryptionProseTests.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,8 @@ public void CreateDataKeyAndDoubleEncryptionTest(
490490
}
491491

492492
using (var client = ConfigureClient())
493-
using (var clientEncrypted = ConfigureClientEncrypted(BsonDocument.Parse(SchemaMap)))
494-
using (var clientEncryption = ConfigureClientEncryption(clientEncrypted))
493+
using (var clientEncrypted = ConfigureClientEncrypted(BsonDocument.Parse(SchemaMap), kmsProviderFilter: kmsProvider))
494+
using (var clientEncryption = ConfigureClientEncryption(clientEncrypted, kmsProviderFilter: kmsProvider))
495495
{
496496
var dataKeyOptions = CreateDataKeyOptions(kmsProvider);
497497
var dataKey = CreateDataKey(clientEncryption, kmsProvider, dataKeyOptions, async);
@@ -585,8 +585,8 @@ public void CustomEndpointTest(
585585
}
586586

587587
using (var client = ConfigureClient())
588-
using (var clientEncryption = ConfigureClientEncryption(client, ValidKmsEndpointConfigurator))
589-
using (var clientEncryptionInvalid = ConfigureClientEncryption(client, InvalidKmsEndpointConfigurator))
588+
using (var clientEncryption = ConfigureClientEncryption(client, ValidKmsEndpointConfigurator, kmsProviderFilter: kmsType))
589+
using (var clientEncryptionInvalid = ConfigureClientEncryption(client, InvalidKmsEndpointConfigurator, kmsProviderFilter: kmsType))
590590
{
591591
var testCaseMasterKey = kmsType switch
592592
{
@@ -928,8 +928,8 @@ public void ExternalKeyVaultTest(
928928

929929
var clientEncryptedSchema = new BsonDocument("db.coll", JsonFileReader.Instance.Documents["external.external-schema.json"]);
930930
using (var client = ConfigureClient())
931-
using (var clientEncrypted = ConfigureClientEncrypted(clientEncryptedSchema, externalKeyVaultClient: externalKeyVaultClient))
932-
using (var clientEncryption = ConfigureClientEncryption(clientEncrypted))
931+
using (var clientEncrypted = ConfigureClientEncrypted(clientEncryptedSchema, externalKeyVaultClient: externalKeyVaultClient, kmsProviderFilter: "local"))
932+
using (var clientEncryption = ConfigureClientEncryption(clientEncrypted, kmsProviderFilter: "local"))
933933
{
934934
var datakeys = GetCollection(client, __keyVaultCollectionNamespace);
935935
var externalKey = JsonFileReader.Instance.Documents["external.external-key.json"];
@@ -1309,8 +1309,8 @@ public void UnsupportedPlatformsTests(
13091309
{
13101310
RequireServer.Check().Supports(Feature.ClientSideEncryption);
13111311

1312-
using (var clientEncrypted = ConfigureClientEncrypted())
1313-
using (var clientEncryption = ConfigureClientEncryption(clientEncrypted))
1312+
using (var clientEncrypted = ConfigureClientEncrypted(kmsProviderFilter: kmsProvider))
1313+
using (var clientEncryption = ConfigureClientEncryption(clientEncrypted, kmsProviderFilter: kmsProvider))
13141314
{
13151315
var dataKeyOptions = CreateDataKeyOptions(kmsProvider);
13161316
var exception = Record.Exception(() => _ = CreateDataKey(clientEncryption, kmsProvider, dataKeyOptions, async));

0 commit comments

Comments
 (0)