forked from TrueCloudLab/frostfs-testcases
Fix s3 range tests
Signed-off-by: anikeev-yadro <a.anikeev@yadro.com>
This commit is contained in:
parent
de6434934d
commit
d438748b2a
1 changed files with 3 additions and 3 deletions
|
@ -429,7 +429,7 @@ class TestS3GateObject(TestS3GateBase):
|
||||||
bucket,
|
bucket,
|
||||||
file_name,
|
file_name,
|
||||||
version_id_2,
|
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(
|
object_2_part_2 = s3_gate_object.get_object_s3(
|
||||||
self.s3_client,
|
self.s3_client,
|
||||||
|
@ -443,7 +443,7 @@ class TestS3GateObject(TestS3GateBase):
|
||||||
bucket,
|
bucket,
|
||||||
file_name,
|
file_name,
|
||||||
version_id_2,
|
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])
|
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(
|
assert get_file_hash(con_file_1) == get_file_hash(
|
||||||
|
@ -464,7 +464,7 @@ class TestS3GateObject(TestS3GateBase):
|
||||||
self.s3_client,
|
self.s3_client,
|
||||||
bucket,
|
bucket,
|
||||||
file_name,
|
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])
|
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"
|
assert get_file_hash(con_file) == get_file_hash(file_name_1), "Hashes must be the same"
|
||||||
|
|
Loading…
Reference in a new issue