Skip to content

Commit 4caca7b

Browse files
authored
Update ClientEncryptionCustomEndpointTest (mongodb#1694)
DRIVERS-3181
1 parent e8e5845 commit 4caca7b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public void setUp() {
120120
put("endpoint", "doesnotexist.invalid:443");
121121
}});
122122
put("kmip", new HashMap<String, Object>() {{
123-
put("endpoint", "doesnotexist.local:5698");
123+
put("endpoint", "doesnotexist.invalid:5698");
124124
}});
125125
}};
126126

@@ -189,12 +189,11 @@ public static Collection<Object[]> data() {
189189
+ " endpoint: \"kms.us-east-1.amazonaws.com:443\""
190190
+ "}"),
191191
false, null, null, null});
192-
data.add(new Object[]{"4. [aws] invalid amazon region in endpoint",
193-
"aws",
192+
data.add(new Object[]{"4. [kmip] Call client_encryption.createDataKey() and the following masterKey",
193+
"kmip",
194194
BsonDocument.parse("{\n"
195-
+ " region: \"us-east-1\",\n"
196-
+ " key: \"arn:aws:kms:us-east-1:579766882180:key/89fcc2c4-08b0-4bd9-9f25-e30687b580d0\",\n"
197-
+ " endpoint: \"kms.us-east-1.amazonaws.com:12345\"\n"
195+
+ " \"keyId\": \"1\",\n"
196+
+ " \"endpoint\": \"localhost:12345\""
198197
+ "}"),
199198
false, MongoClientException.class, ConnectException.class, "Connection refused"});
200199
data.add(new Object[]{"5. [aws] invalid endpoint host",
@@ -260,7 +259,7 @@ public static Collection<Object[]> data() {
260259
"kmip",
261260
BsonDocument.parse("{\n"
262261
+ " \"keyId\": \"1\",\n"
263-
+ " \"endpoint\": \"doesnotexist.local:5698\"\n"
262+
+ " \"endpoint\": \"doesnotexist.invalid:5698\"\n"
264263
+ "}"),
265264
false, MongoClientException.class, UnknownHostException.class, null});
266265
return data;

0 commit comments

Comments
 (0)