@@ -2823,13 +2823,13 @@ test_kms_tls_cert_valid (void *unused)
2823
2823
2824
2824
#if defined(MONGOC_ENABLE_SSL_SECURE_CHANNEL )
2825
2825
/* Certificate verification fails with Secure Channel given
2826
- * "127.0.0.1:7999 " with error: "hostname doesn't match certificate". */
2826
+ * "127.0.0.1:8999 " with error: "hostname doesn't match certificate". */
2827
2827
ASSERT_OR_PRINT (
2828
- _mongoc_host_list_from_string_with_err (& host , "localhost:7999 " , & error ),
2828
+ _mongoc_host_list_from_string_with_err (& host , "localhost:8999 " , & error ),
2829
2829
error );
2830
2830
#else
2831
2831
ASSERT_OR_PRINT (
2832
- _mongoc_host_list_from_string_with_err (& host , "127.0.0.1:7999 " , & error ),
2832
+ _mongoc_host_list_from_string_with_err (& host , "127.0.0.1:8999 " , & error ),
2833
2833
error );
2834
2834
#endif
2835
2835
@@ -2878,7 +2878,7 @@ test_kms_tls_cert_expired (void *unused)
2878
2878
tmp_bson ("{ 'region': 'us-east-1', 'key': "
2879
2879
"'arn:aws:kms:us-east-1:579766882180:key/"
2880
2880
"89fcc2c4-08b0-4bd9-9f25-e30687b580d0', "
2881
- "'endpoint': '127.0.0.1:8000 ' }" ));
2881
+ "'endpoint': '127.0.0.1:9000 ' }" ));
2882
2882
2883
2883
ret = mongoc_client_encryption_create_datakey (
2884
2884
client_encryption , "aws" , opts , & keyid , & error );
@@ -2926,7 +2926,7 @@ test_kms_tls_cert_wrong_host (void *unused)
2926
2926
tmp_bson ("{ 'region': 'us-east-1', 'key': "
2927
2927
"'arn:aws:kms:us-east-1:579766882180:key/"
2928
2928
"89fcc2c4-08b0-4bd9-9f25-e30687b580d0', "
2929
- "'endpoint': '127.0.0.1:8001 ' }" ));
2929
+ "'endpoint': '127.0.0.1:9001 ' }" ));
2930
2930
2931
2931
ret = mongoc_client_encryption_create_datakey (
2932
2932
client_encryption , "aws" , opts , & keyid , & error );
@@ -2997,7 +2997,7 @@ _tls_test_make_client_encryption (mongoc_client_t *keyvault_client,
2997
2997
bson_concat (kms_providers ,
2998
2998
tmp_bson ("{'azure': {'tenantId': '%s', 'clientId': '%s', "
2999
2999
"'clientSecret': '%s', "
3000
- "'identityPlatformEndpoint': '127.0.0.1:8002 ' }}" ,
3000
+ "'identityPlatformEndpoint': '127.0.0.1:9002 ' }}" ,
3001
3001
mongoc_test_azure_tenant_id ,
3002
3002
mongoc_test_azure_client_id ,
3003
3003
mongoc_test_azure_client_secret ));
@@ -3010,7 +3010,7 @@ _tls_test_make_client_encryption (mongoc_client_t *keyvault_client,
3010
3010
3011
3011
bson_concat (kms_providers ,
3012
3012
tmp_bson ("{'gcp': { 'email': '%s', 'privateKey': '%s', "
3013
- "'endpoint': '127.0.0.1:8002 ' }}" ,
3013
+ "'endpoint': '127.0.0.1:9002 ' }}" ,
3014
3014
mongoc_test_gcp_email ,
3015
3015
mongoc_test_gcp_privatekey ));
3016
3016
bson_concat (
@@ -3036,13 +3036,13 @@ _tls_test_make_client_encryption (mongoc_client_t *keyvault_client,
3036
3036
bson_concat (kms_providers ,
3037
3037
tmp_bson ("{'azure': {'tenantId': '%s', 'clientId': '%s', "
3038
3038
"'clientSecret': '%s', "
3039
- "'identityPlatformEndpoint': '127.0.0.1:8002 '}}" ,
3039
+ "'identityPlatformEndpoint': '127.0.0.1:9002 '}}" ,
3040
3040
mongoc_test_azure_tenant_id ,
3041
3041
mongoc_test_azure_client_id ,
3042
3042
mongoc_test_azure_client_secret ));
3043
3043
bson_concat (kms_providers ,
3044
3044
tmp_bson ("{'gcp': { 'email': '%s', 'privateKey': '%s', "
3045
- "'endpoint': '127.0.0.1:8002 '}}" ,
3045
+ "'endpoint': '127.0.0.1:9002 '}}" ,
3046
3046
mongoc_test_gcp_email ,
3047
3047
mongoc_test_gcp_privatekey ));
3048
3048
bson_concat (kms_providers ,
@@ -3057,7 +3057,7 @@ _tls_test_make_client_encryption (mongoc_client_t *keyvault_client,
3057
3057
bson_concat (kms_providers ,
3058
3058
tmp_bson ("{'azure': {'tenantId': '%s', 'clientId': '%s', "
3059
3059
"'clientSecret': '%s', "
3060
- "'identityPlatformEndpoint': '127.0.0.1:8000 '}}" ,
3060
+ "'identityPlatformEndpoint': '127.0.0.1:9000 '}}" ,
3061
3061
mongoc_test_azure_tenant_id ,
3062
3062
mongoc_test_azure_client_id ,
3063
3063
mongoc_test_azure_client_secret ));
@@ -3066,14 +3066,14 @@ _tls_test_make_client_encryption (mongoc_client_t *keyvault_client,
3066
3066
3067
3067
bson_concat (kms_providers ,
3068
3068
tmp_bson ("{'gcp': { 'email': '%s', 'privateKey': '%s', "
3069
- "'endpoint': '127.0.0.1:8000 '}}" ,
3069
+ "'endpoint': '127.0.0.1:9000 '}}" ,
3070
3070
mongoc_test_gcp_email ,
3071
3071
mongoc_test_gcp_privatekey ));
3072
3072
bson_concat (tls_opts ,
3073
3073
tmp_bson ("{'gcp': {'tlsCaFile': '%s'} }" , ca_file ));
3074
3074
3075
3075
bson_concat (kms_providers ,
3076
- tmp_bson ("{'kmip': { 'endpoint': '127.0.0.1:8000 ' }}" ));
3076
+ tmp_bson ("{'kmip': { 'endpoint': '127.0.0.1:9000 ' }}" ));
3077
3077
bson_concat (tls_opts ,
3078
3078
tmp_bson ("{'kmip': {'tlsCaFile': '%s'} }" , ca_file ));
3079
3079
} else if (test_ce == INVALID_HOSTNAME ) {
@@ -3086,7 +3086,7 @@ _tls_test_make_client_encryption (mongoc_client_t *keyvault_client,
3086
3086
bson_concat (kms_providers ,
3087
3087
tmp_bson ("{'azure': {'tenantId': '%s', 'clientId': '%s', "
3088
3088
"'clientSecret': '%s', "
3089
- "'identityPlatformEndpoint': '127.0.0.1:8001 ' }}" ,
3089
+ "'identityPlatformEndpoint': '127.0.0.1:9001 ' }}" ,
3090
3090
mongoc_test_azure_tenant_id ,
3091
3091
mongoc_test_azure_client_id ,
3092
3092
mongoc_test_azure_client_secret ));
@@ -3095,14 +3095,14 @@ _tls_test_make_client_encryption (mongoc_client_t *keyvault_client,
3095
3095
3096
3096
bson_concat (kms_providers ,
3097
3097
tmp_bson ("{'gcp': { 'email': '%s', 'privateKey': '%s', "
3098
- "'endpoint': '127.0.0.1:8001 ' }}" ,
3098
+ "'endpoint': '127.0.0.1:9001 ' }}" ,
3099
3099
mongoc_test_gcp_email ,
3100
3100
mongoc_test_gcp_privatekey ));
3101
3101
bson_concat (tls_opts ,
3102
3102
tmp_bson ("{'gcp': {'tlsCaFile': '%s'} }" , ca_file ));
3103
3103
3104
3104
bson_concat (kms_providers ,
3105
- tmp_bson ("{'kmip': { 'endpoint': '127.0.0.1:8001 ' }}" ));
3105
+ tmp_bson ("{'kmip': { 'endpoint': '127.0.0.1:9001 ' }}" ));
3106
3106
bson_concat (tls_opts ,
3107
3107
tmp_bson ("{'kmip': {'tlsCaFile': '%s'} }" , ca_file ));
3108
3108
} else {
@@ -3205,7 +3205,7 @@ test_kms_tls_options (void *unused)
3205
3205
tmp_bson ("{ 'region': 'us-east-1', 'key': "
3206
3206
"'arn:aws:kms:us-east-1:579766882180:key/"
3207
3207
"89fcc2c4-08b0-4bd9-9f25-e30687b580d0', 'endpoint': "
3208
- "'127.0.0.1:8002 ' }" ));
3208
+ "'127.0.0.1:9002 ' }" ));
3209
3209
res = mongoc_client_encryption_create_datakey (
3210
3210
client_encryption_no_client_cert , "aws" , dkopts , & keyid , & error );
3211
3211
ASSERT_ERROR_CONTAINS (
@@ -3221,7 +3221,7 @@ test_kms_tls_options (void *unused)
3221
3221
tmp_bson ("{ 'region': 'us-east-1', 'key': "
3222
3222
"'arn:aws:kms:us-east-1:579766882180:key/"
3223
3223
"89fcc2c4-08b0-4bd9-9f25-e30687b580d0', 'endpoint': "
3224
- "'127.0.0.1:8002 ' }" ));
3224
+ "'127.0.0.1:9002 ' }" ));
3225
3225
res = mongoc_client_encryption_create_datakey (
3226
3226
client_encryption_with_tls , "aws" , dkopts , & keyid , & error );
3227
3227
ASSERT_ERROR_CONTAINS (error ,
@@ -3239,7 +3239,7 @@ test_kms_tls_options (void *unused)
3239
3239
tmp_bson ("{ 'region': 'us-east-1', 'key': "
3240
3240
"'arn:aws:kms:us-east-1:579766882180:key/"
3241
3241
"89fcc2c4-08b0-4bd9-9f25-e30687b580d0', 'endpoint': "
3242
- "'127.0.0.1:8000 ' }" ));
3242
+ "'127.0.0.1:9000 ' }" ));
3243
3243
res = mongoc_client_encryption_create_datakey (
3244
3244
client_encryption_expired , "aws" , dkopts , & keyid , & error );
3245
3245
ASSERT_EXPIRED (error );
@@ -3254,7 +3254,7 @@ test_kms_tls_options (void *unused)
3254
3254
tmp_bson ("{ 'region': 'us-east-1', 'key': "
3255
3255
"'arn:aws:kms:us-east-1:579766882180:key/"
3256
3256
"89fcc2c4-08b0-4bd9-9f25-e30687b580d0', 'endpoint': "
3257
- "'127.0.0.1:8001 ' }" ));
3257
+ "'127.0.0.1:9001 ' }" ));
3258
3258
res = mongoc_client_encryption_create_datakey (
3259
3259
client_encryption_invalid_hostname , "aws" , dkopts , & keyid , & error );
3260
3260
ASSERT_INVALID_HOSTNAME (error );
0 commit comments