Skip to content

Commit a35029d

Browse files
update test
1 parent 6bcb9e2 commit a35029d

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

include/aws/s3/private/s3_checksums.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ static const enum aws_s3_checksum_algorithm s_checksum_algo_priority_list[] = {
1919
AWS_SCA_CRC32,
2020
AWS_SCA_SHA1,
2121
AWS_SCA_SHA256,
22+
AWS_SCA_SHA512,
23+
AWS_SCA_XXHASH64,
24+
AWS_SCA_XXHASH3_64,
25+
AWS_SCA_XXHASH3_128
2226
};
2327
AWS_STATIC_ASSERT(AWS_ARRAY_SIZE(s_checksum_algo_priority_list) == (AWS_SCA_END - AWS_SCA_INIT + 1));
2428

tests/s3_data_plane_tests.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4131,8 +4131,8 @@ static int s_test_s3_round_trip_default_get_fc_helper(
41314131
.object_path_override = object_path,
41324132
},
41334133
};
4134-
if (algorithm != AWS_SCA_SHA1 && algorithm != AWS_SCA_SHA256) {
4135-
/* Full object checksums doesn't support SHA. */
4134+
if (algorithm == AWS_SCA_CRC32 && algorithm == AWS_SCA_CRC32C && algorithm == AWS_SCA_CRC64NVME) {
4135+
/* Full object checksums doesn't support SHA or XXHASH. */
41364136
put_options.put_options.full_object_checksum = full_object_checksum;
41374137
}
41384138

0 commit comments

Comments
 (0)