Skip to content

Commit 5d8edc1

Browse files
CSHARP-4041: Remove use of example.com in Client Side Encryption prose tests. (#746)
1 parent 6e8c224 commit 5d8edc1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -556,14 +556,14 @@ public void CreateDataKeyAndDoubleEncryptionTest(
556556
[InlineData("aws", "kms.us-east-1.amazonaws.com:443", null, null)]
557557
[InlineData("aws", "kms.us-east-1.amazonaws.com:12345", "$ConnectionRefused$", null)]
558558
[InlineData("aws", "kms.us-east-2.amazonaws.com", "us-east-1", null)]
559-
[InlineData("aws", "example.com", "parse error", null)]
559+
[InlineData("aws", "doesnotexist.invalid", "$HostNotFound$", null)]
560560
// additional not spec tests
561561
[InlineData("aws", "$test$", "Invalid endpoint, expected dot separator in host, but got: $test$", null)]
562562
// azure
563-
[InlineData("azure", "key-vault-csfle.vault.azure.net", null, "parse error")]
563+
[InlineData("azure", "key-vault-csfle.vault.azure.net", null, "$HostNotFound$")]
564564
// gcp
565-
[InlineData("gcp", "cloudkms.googleapis.com:443", null, "parse error")]
566-
[InlineData("gcp", "example.com:443", "Invalid KMS response", null)]
565+
[InlineData("gcp", "cloudkms.googleapis.com:443", null, "$HostNotFound$")]
566+
[InlineData("gcp", "doesnotexist.invalid:443", "Invalid KMS response", null)]
567567
// kmip
568568
[InlineData("kmip", null, null, "$HostNotFound$")]
569569
[InlineData("kmip", "localhost:5698", null, null)]
@@ -665,10 +665,10 @@ void InvalidKmsEndpointConfigurator(string kt, Dictionary<string, object> ko)
665665
switch (kt)
666666
{
667667
case "azure":
668-
ko.Add("identityPlatformEndpoint", "example.com:443");
668+
ko.Add("identityPlatformEndpoint", "doesnotexist.invalid:443");
669669
break;
670670
case "gcp":
671-
ko.Add("endpoint", "example.com:443");
671+
ko.Add("endpoint", "doesnotexist.invalid:443");
672672
break;
673673
case "kmip":
674674
AddOrReplace(ko, "endpoint", "doesnotexist.local:5698");

0 commit comments

Comments
 (0)