Skip to content

Commit

Permalink
remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed May 1, 2024
1 parent 1d169bf commit 46e4b02
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 77 deletions.
2 changes: 0 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
75 changes: 0 additions & 75 deletions tests/credentials_provider_ecs_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 46e4b02

Please sign in to comment.