From d438748b2a78a22ebbcfdfeb2a0b2c551fd762c9 Mon Sep 17 00:00:00 2001 From: anikeev-yadro Date: Tue, 13 Dec 2022 18:10:53 +0300 Subject: [PATCH] Fix s3 range tests Signed-off-by: anikeev-yadro --- pytest_tests/testsuites/services/s3_gate/test_s3_object.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pytest_tests/testsuites/services/s3_gate/test_s3_object.py b/pytest_tests/testsuites/services/s3_gate/test_s3_object.py index 28a37ec..a46eb9c 100644 --- a/pytest_tests/testsuites/services/s3_gate/test_s3_object.py +++ b/pytest_tests/testsuites/services/s3_gate/test_s3_object.py @@ -429,7 +429,7 @@ class TestS3GateObject(TestS3GateBase): bucket, file_name, version_id_2, - range=[0, int(complex_object_size / 3)], + range=[0, int(simple_object_size / 3)], ) object_2_part_2 = s3_gate_object.get_object_s3( self.s3_client, @@ -443,7 +443,7 @@ class TestS3GateObject(TestS3GateBase): bucket, file_name, version_id_2, - range=[2 * int(simple_object_size / 3) + 1, complex_object_size], + range=[2 * int(simple_object_size / 3) + 1, simple_object_size], ) con_file_1 = concat_files([object_2_part_1, object_2_part_2, object_2_part_3]) assert get_file_hash(con_file_1) == get_file_hash( @@ -464,7 +464,7 @@ class TestS3GateObject(TestS3GateBase): self.s3_client, bucket, file_name, - range=[2 * int(simple_object_size / 3) + 1, complex_object_size], + range=[2 * int(simple_object_size / 3) + 1, simple_object_size], ) con_file = concat_files([object_3_part_1, object_3_part_2, object_3_part_3]) assert get_file_hash(con_file) == get_file_hash(file_name_1), "Hashes must be the same"