Skip to content

Commit

Permalink
Replace example.com with doesnotexist.invalid in CSFLE prose test
Browse files Browse the repository at this point in the history
  • Loading branch information
jyemin committed Feb 7, 2022
1 parent ffe64ec commit 8be4bcc
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ public void setUp() {
put("tenantId", System.getProperty("org.mongodb.test.azureTenantId"));
put("clientId", System.getProperty("org.mongodb.test.azureClientId"));
put("clientSecret", System.getProperty("org.mongodb.test.azureClientSecret"));
put("identityPlatformEndpoint", "example.com:443");
put("identityPlatformEndpoint", "doesnotexist.invalid:443");
}});
put("gcp", new HashMap<String, Object>() {{
put("email", System.getProperty("org.mongodb.test.gcpEmail"));
put("privateKey", System.getProperty("org.mongodb.test.gcpPrivateKey"));
put("endpoint", "example.com:443");
put("endpoint", "doesnotexist.invalid:443");
}});
put("kmip", new HashMap<String, Object>() {{
put("endpoint", "doesnotexist.local:5698");
Expand Down Expand Up @@ -211,17 +211,17 @@ public static Collection<Object[]> data() {
BsonDocument.parse("{\n"
+ " region: \"us-east-1\",\n"
+ " key: \"arn:aws:kms:us-east-1:579766882180:key/89fcc2c4-08b0-4bd9-9f25-e30687b580d0\",\n"
+ " endpoint: \"example.com\"\n"
+ " endpoint: \"doesnotexist.invalid\"\n"
+ "}"),
false, MongoClientException.class, MongoCryptException.class, "parse error"});
false, MongoClientException.class, UnknownHostException.class, null});

data.add(new Object[]{"7. [azure] valid and invalid kms providers test",
"azure",
BsonDocument.parse("{\n"
+ " \"keyVaultEndpoint\": \"key-vault-csfle.vault.azure.net\",\n"
+ " \"keyName\": \"key-name-csfle\"\n"
+ "}"),
true, MongoClientException.class, MongoCryptException.class, "parse error"});
true, MongoClientException.class, UnknownHostException.class, null});

data.add(new Object[]{"8. [gcp] valid and invalid kms providers test",
"gcp",
Expand All @@ -232,7 +232,7 @@ public static Collection<Object[]> data() {
+ " \"keyName\": \"key-name-csfle\",\n"
+ " \"endpoint\": \"cloudkms.googleapis.com:443\"\n"
+ "}"),
true, MongoClientException.class, MongoCryptException.class, "parse error"});
true, MongoClientException.class, UnknownHostException.class, null});

data.add(new Object[]{"9. [gcp] invalid endpoint",
"gcp",
Expand All @@ -241,7 +241,7 @@ public static Collection<Object[]> data() {
+ " \"location\": \"global\",\n"
+ " \"keyRing\": \"test\",\n"
+ " \"keyName\": \"quickstart\",\n"
+ " \"endpoint\": \"example.com:443\"\n"
+ " \"endpoint\": \"doesnotexist.invalid:443\"\n"
+ "}"),
false, MongoClientException.class, MongoCryptException.class, "Invalid KMS response"});
data.add(new Object[]{"10. [kmip] endpoint from KMS providers map",
Expand Down

0 comments on commit 8be4bcc

Please sign in to comment.