From c88616c2a82a97094ae1c2ab39f0a5e5bd0a9fa4 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Khan Date: Sun, 3 Dec 2023 13:56:51 -0800 Subject: [PATCH 1/2] checksum issue --- tests/s3_data_plane_tests.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/s3_data_plane_tests.c b/tests/s3_data_plane_tests.c index e879a9557..30faeb2ca 100644 --- a/tests/s3_data_plane_tests.c +++ b/tests/s3_data_plane_tests.c @@ -3506,7 +3506,11 @@ static int s_test_s3_round_trip_multipart_get_fc(struct aws_allocator *allocator ASSERT_SUCCESS(aws_s3_tester_send_meta_request_with_options(&tester, &put_options, NULL)); + client = aws_s3_client_release(client); + tester.bound_to_client = false; /*** GET FILE ***/ + client_options.part_size = MB_TO_BYTES(5); + ASSERT_SUCCESS(aws_s3_tester_client_new(&tester, &client_options, &client)); struct aws_s3_tester_meta_request_options get_options = { .allocator = allocator, @@ -3569,8 +3573,12 @@ static int s_test_s3_round_trip_mpu_multipart_get_fc(struct aws_allocator *alloc }; ASSERT_SUCCESS(aws_s3_tester_send_meta_request_with_options(&tester, &put_options, NULL)); + client = aws_s3_client_release(client); + tester.bound_to_client = false; /*** GET FILE ***/ + client_options.part_size = MB_TO_BYTES(20); + ASSERT_SUCCESS(aws_s3_tester_client_new(&tester, &client_options, &client)); struct aws_s3_tester_meta_request_options get_options = { .allocator = allocator, From 732db585a7d0095dc8dcbaee96c7a34e85ce185b Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Khan Date: Mon, 4 Dec 2023 09:42:06 -0800 Subject: [PATCH 2/2] Increase object size --- tests/s3_data_plane_tests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/s3_data_plane_tests.c b/tests/s3_data_plane_tests.c index 30faeb2ca..1ac1d5458 100644 --- a/tests/s3_data_plane_tests.c +++ b/tests/s3_data_plane_tests.c @@ -3477,7 +3477,7 @@ static int s_test_s3_round_trip_multipart_get_fc(struct aws_allocator *allocator struct aws_s3_tester tester; ASSERT_SUCCESS(aws_s3_tester_init(allocator, &tester)); struct aws_s3_tester_client_options client_options = { - .part_size = 16 * 1024, + .part_size = MB_TO_BYTES(5), }; struct aws_s3_client *client = NULL; @@ -3499,7 +3499,7 @@ static int s_test_s3_round_trip_multipart_get_fc(struct aws_allocator *allocator .validate_get_response_checksum = false, .put_options = { - .object_size_mb = 1, + .object_size_mb = 10, .object_path_override = object_path, }, }; @@ -3509,7 +3509,7 @@ static int s_test_s3_round_trip_multipart_get_fc(struct aws_allocator *allocator client = aws_s3_client_release(client); tester.bound_to_client = false; /*** GET FILE ***/ - client_options.part_size = MB_TO_BYTES(5); + client_options.part_size = MB_TO_BYTES(20); ASSERT_SUCCESS(aws_s3_tester_client_new(&tester, &client_options, &client)); struct aws_s3_tester_meta_request_options get_options = {