diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 7cd69004..2f84e2e2 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -52,8 +52,6 @@ add_test_case(credentials_provider_ecs_bad_document_failure) add_test_case(credentials_provider_ecs_basic_success) add_test_case(credentials_provider_ecs_basic_success_token_file) add_test_case(credentials_provider_ecs_basic_success_uri_env) -#add_test_case(credentials_provider_ecs_basic_success_token_env) -#add_test_case(credentials_provider_ecs_basic_success_token_env_with_parameter_token) add_test_case(credentials_provider_ecs_no_auth_token_success) add_test_case(credentials_provider_ecs_success_multi_part_doc) add_test_case(credentials_provider_ecs_real_new_destroy) diff --git a/tests/credentials_provider_ecs_tests.c b/tests/credentials_provider_ecs_tests.c index db8a95ea..729ca390 100644 --- a/tests/credentials_provider_ecs_tests.c +++ b/tests/credentials_provider_ecs_tests.c @@ -847,81 +847,6 @@ static int s_credentials_provider_ecs_basic_success_uri_env(struct aws_allocator } AWS_TEST_CASE(credentials_provider_ecs_basic_success_uri_env, s_credentials_provider_ecs_basic_success_uri_env); -// static int s_credentials_provider_ecs_basic_success_token_env(struct aws_allocator *allocator, void *ctx) { -// (void)ctx; - -// s_aws_ecs_tester_init(allocator); - -// struct aws_byte_cursor good_response_cursor = aws_byte_cursor_from_string(s_good_response); -// aws_array_list_push_back(&s_tester.response_data_callbacks, &good_response_cursor); -// struct aws_string *auth_token = aws_string_new_from_c_str(allocator, "t-token-1234-abcd"); -// aws_set_environment_value(s_ecs_creds_env_token, auth_token); -// struct aws_credentials_provider_ecs_options options = { -// .bootstrap = NULL, -// .function_table = &s_mock_function_table, -// .shutdown_options = -// { -// .shutdown_callback = s_on_shutdown_complete, -// .shutdown_user_data = NULL, -// }, -// .host = aws_byte_cursor_from_c_str("www.xxx123321testmocknonexsitingawsservice.com"), -// .path_and_query = aws_byte_cursor_from_c_str("/path/to/resource/?a=b&c=d"), -// }; - -// ASSERT_SUCCESS(s_do_ecs_success_test( -// allocator, -// &options, -// "http://www.xxx123321testmocknonexsitingawsservice.com:80/path/to/resource/?a=b&c=d" /*expected_uri*/, -// aws_string_c_str(auth_token) /*expected_token*/)); - -// s_aws_ecs_tester_cleanup(); -// aws_string_destroy(auth_token); -// return 0; -// } -// AWS_TEST_CASE(credentials_provider_ecs_basic_success_token_env, s_credentials_provider_ecs_basic_success_token_env); - -// static int s_credentials_provider_ecs_basic_success_token_env_with_parameter_token( -// struct aws_allocator *allocator, -// void *ctx) { -// (void)ctx; - -// s_aws_ecs_tester_init(allocator); - -// struct aws_byte_cursor good_response_cursor = aws_byte_cursor_from_string(s_good_response); -// aws_array_list_push_back(&s_tester.response_data_callbacks, &good_response_cursor); - -// struct aws_string *auth_token = aws_string_new_from_c_str(allocator, "t-token-1234-abcd"); -// aws_set_environment_value(s_ecs_creds_env_token, auth_token); - -// const char *expected_token = "t-token-4321-xyz"; -// struct aws_credentials_provider_ecs_options options = { - -// .bootstrap = NULL, -// .function_table = &s_mock_function_table, -// .shutdown_options = -// { -// .shutdown_callback = s_on_shutdown_complete, -// .shutdown_user_data = NULL, -// }, -// .host = aws_byte_cursor_from_c_str("www.xxx123321testmocknonexsitingawsservice.com"), -// .path_and_query = aws_byte_cursor_from_c_str("/path/to/resource/?a=b&c=d"), -// .auth_token = aws_byte_cursor_from_c_str(expected_token), -// }; - -// ASSERT_SUCCESS(s_do_ecs_success_test( -// allocator, -// &options, -// "http://www.xxx123321testmocknonexsitingawsservice.com:80/path/to/resource/?a=b&c=d" /*expected_uri*/, -// expected_token)); - -// s_aws_ecs_tester_cleanup(); -// aws_string_destroy(auth_token); -// return 0; -// } -// AWS_TEST_CASE( -// credentials_provider_ecs_basic_success_token_env_with_parameter_token, -// s_credentials_provider_ecs_basic_success_token_env_with_parameter_token); - static int s_credentials_provider_ecs_no_auth_token_success(struct aws_allocator *allocator, void *ctx) { (void)ctx;