Skip to content

Commit 3beda35

Browse files
authored
Update AWS invalid endpoint host test (#909)
Update the error message to check. JAVA-4564
1 parent 6106129 commit 3beda35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver-sync/src/test/functional/com/mongodb/client/AbstractClientEncryptionCustomEndpointTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public static Collection<Object[]> data() {
205205
+ " key: \"arn:aws:kms:us-east-1:579766882180:key/89fcc2c4-08b0-4bd9-9f25-e30687b580d0\",\n"
206206
+ " endpoint: \"kms.us-east-2.amazonaws.com\"\n"
207207
+ "}"),
208-
false, MongoClientException.class, MongoCryptException.class, "us-east-1"});
208+
false, MongoClientException.class, MongoCryptException.class, "Credential should be scoped to a valid region"});
209209
data.add(new Object[]{"6. [aws] invalid endpoint host",
210210
"aws",
211211
BsonDocument.parse("{\n"

0 commit comments

Comments
 (0)