@@ -1176,7 +1176,7 @@ void _run_endpoint_test(
1176
1176
}));
1177
1177
1178
1178
kms_doc_invalid.append (
1179
- kvp (" kmip" , [&](sub_document subdoc) { subdoc.append (kvp (" endpoint" , " doesnotexist.local :5698" )); }));
1179
+ kvp (" kmip" , [&](sub_document subdoc) { subdoc.append (kvp (" endpoint" , " doesnotexist.invalid :5698" )); }));
1180
1180
1181
1181
ce_opts_invalid.key_vault_client (setup_client);
1182
1182
ce_opts_invalid.key_vault_namespace ({" keyvault" , " datakeys" });
@@ -1276,22 +1276,16 @@ TEST_CASE("Custom endpoint", "[client_side_encryption]") {
1276
1276
_run_endpoint_test (&setup_client, endpoint_masterkey2.view (), " aws" );
1277
1277
}
1278
1278
1279
- // Call client_encryption.createDataKey() with "aws " as the provider and the following
1279
+ // Call client_encryption.createDataKey() with "kmip " as the provider and the following
1280
1280
// masterKey:
1281
1281
// {
1282
- // region: "us-east-1",
1283
- // key: "arn:aws:kms:us-east-1:579766882180:key/89fcc2c4-08b0-4bd9-9f25-e30687b580d0",
1284
- // endpoint: "kms.us-east-1.amazonaws.com:12345"
1282
+ // "keyId": "1",
1283
+ // "endpoint": "localhost:12345"
1285
1284
// }
1286
1285
// Expect this to fail with a socket connection error.
1287
1286
SECTION (" Test Case 4" ) {
1288
- auto socket_error_masterkey = document{}
1289
- << " region"
1290
- << " us-east-1"
1291
- << " key"
1292
- << " arn:aws:kms:us-east-1:579766882180:key/89fcc2c4-08b0-4bd9-9f25-e30687b580d0"
1293
- << " endpoint"
1294
- << " kms.us-east-1.amazonaws.com:12345" << finalize;
1287
+ auto socket_error_masterkey = document{} << " keyId" << 1 << " endpoing"
1288
+ << " localhost:12345" << finalize;
1295
1289
_run_endpoint_test (&setup_client, socket_error_masterkey.view (), " aws" , {{" error" }});
1296
1290
}
1297
1291
@@ -1428,7 +1422,7 @@ TEST_CASE("Custom endpoint", "[client_side_encryption]") {
1428
1422
// Expect this to succeed. Use the returned UUID of the key to explicitly encrypt and decrypt
1429
1423
// the string "test" to validate it works. Call client_encryption_invalid.createDataKey() with
1430
1424
// the same masterKey. Expect this to fail with a network exception indicating failure to
1431
- // resolve "doesnotexist.local ".
1425
+ // resolve "doesnotexist.invalid ".
1432
1426
SECTION (" Test Case 10" ) {
1433
1427
auto kmip_masterkey = document{} << " keyId"
1434
1428
<< " 1" << finalize;
@@ -1437,7 +1431,7 @@ TEST_CASE("Custom endpoint", "[client_side_encryption]") {
1437
1431
kmip_masterkey.view (),
1438
1432
" kmip" ,
1439
1433
bsoncxx::stdx::nullopt,
1440
- {{" Failed to resolve doesnotexist.local : generic server error" }});
1434
+ {{" Failed to resolve doesnotexist.invalid : generic server error" }});
1441
1435
}
1442
1436
1443
1437
// Call `client_encryption.createDataKey()` with "kmip" as the provider and the following
@@ -1460,20 +1454,20 @@ TEST_CASE("Custom endpoint", "[client_side_encryption]") {
1460
1454
// masterKey:
1461
1455
// {
1462
1456
// "keyId": "1",
1463
- // "endpoint": "doesnotexist.local :5698"
1457
+ // "endpoint": "doesnotexist.invalid :5698"
1464
1458
// }
1465
1459
// Expect this to fail with a network exception indicating failure to resolve
1466
- // "doesnotexist.local ".
1460
+ // "doesnotexist.invalid ".
1467
1461
SECTION (" Test Case 12" ) {
1468
1462
auto kmip_masterkey = document{} << " keyId"
1469
1463
<< " 1"
1470
1464
<< " endpoint"
1471
- << " doesnotexist.local :5698" << finalize;
1465
+ << " doesnotexist.invalid :5698" << finalize;
1472
1466
_run_endpoint_test (
1473
1467
&setup_client,
1474
1468
kmip_masterkey.view (),
1475
1469
" kmip" ,
1476
- {{" Failed to resolve doesnotexist.local : generic server error" }});
1470
+ {{" Failed to resolve doesnotexist.invalid : generic server error" }});
1477
1471
}
1478
1472
}
1479
1473
@@ -1955,7 +1949,7 @@ TEST_CASE("KMS TLS Options Tests", "[client_side_encryption][!mayfail]") {
1955
1949
1956
1950
opts.master_key (
1957
1951
document () << " keyVaultEndpoint"
1958
- << " doesnotexist.local "
1952
+ << " doesnotexist.invalid "
1959
1953
<< " keyName"
1960
1954
<< " foo" << finalize);
1961
1955
0 commit comments