@@ -112,12 +112,12 @@ public void setUp() {
112112 put ("tenantId" , System .getProperty ("org.mongodb.test.azureTenantId" ));
113113 put ("clientId" , System .getProperty ("org.mongodb.test.azureClientId" ));
114114 put ("clientSecret" , System .getProperty ("org.mongodb.test.azureClientSecret" ));
115- put ("identityPlatformEndpoint" , "example.com :443" );
115+ put ("identityPlatformEndpoint" , "doesnotexist.invalid :443" );
116116 }});
117117 put ("gcp" , new HashMap <String , Object >() {{
118118 put ("email" , System .getProperty ("org.mongodb.test.gcpEmail" ));
119119 put ("privateKey" , System .getProperty ("org.mongodb.test.gcpPrivateKey" ));
120- put ("endpoint" , "example.com :443" );
120+ put ("endpoint" , "doesnotexist.invalid :443" );
121121 }});
122122 put ("kmip" , new HashMap <String , Object >() {{
123123 put ("endpoint" , "doesnotexist.local:5698" );
@@ -211,17 +211,17 @@ public static Collection<Object[]> data() {
211211 BsonDocument .parse ("{\n "
212212 + " region: \" us-east-1\" ,\n "
213213 + " key: \" arn:aws:kms:us-east-1:579766882180:key/89fcc2c4-08b0-4bd9-9f25-e30687b580d0\" ,\n "
214- + " endpoint: \" example.com \" \n "
214+ + " endpoint: \" doesnotexist.invalid \" \n "
215215 + "}" ),
216- false , MongoClientException .class , MongoCryptException .class , "parse error" });
216+ false , MongoClientException .class , UnknownHostException .class , null });
217217
218218 data .add (new Object []{"7. [azure] valid and invalid kms providers test" ,
219219 "azure" ,
220220 BsonDocument .parse ("{\n "
221221 + " \" keyVaultEndpoint\" : \" key-vault-csfle.vault.azure.net\" ,\n "
222222 + " \" keyName\" : \" key-name-csfle\" \n "
223223 + "}" ),
224- true , MongoClientException .class , MongoCryptException .class , "parse error" });
224+ true , MongoClientException .class , UnknownHostException .class , null });
225225
226226 data .add (new Object []{"8. [gcp] valid and invalid kms providers test" ,
227227 "gcp" ,
@@ -232,7 +232,7 @@ public static Collection<Object[]> data() {
232232 + " \" keyName\" : \" key-name-csfle\" ,\n "
233233 + " \" endpoint\" : \" cloudkms.googleapis.com:443\" \n "
234234 + "}" ),
235- true , MongoClientException .class , MongoCryptException .class , "parse error" });
235+ true , MongoClientException .class , UnknownHostException .class , null });
236236
237237 data .add (new Object []{"9. [gcp] invalid endpoint" ,
238238 "gcp" ,
@@ -241,7 +241,7 @@ public static Collection<Object[]> data() {
241241 + " \" location\" : \" global\" ,\n "
242242 + " \" keyRing\" : \" test\" ,\n "
243243 + " \" keyName\" : \" quickstart\" ,\n "
244- + " \" endpoint\" : \" example.com :443\" \n "
244+ + " \" endpoint\" : \" doesnotexist.invalid :443\" \n "
245245 + "}" ),
246246 false , MongoClientException .class , MongoCryptException .class , "Invalid KMS response" });
247247 data .add (new Object []{"10. [kmip] endpoint from KMS providers map" ,
0 commit comments