forked from TrueCloudLab/frostfs-testcases
add system http system header test
Signed-off-by: Vladislav Karakozov <v.karakozov@yadro.com>
This commit is contained in:
parent
6209a61258
commit
4f9294918d
2 changed files with 376 additions and 1 deletions
|
@ -278,6 +278,7 @@ def get_object_and_verify_hashes(
|
|||
endpoint: str,
|
||||
object_getter=None,
|
||||
) -> None:
|
||||
|
||||
nodes_list = get_nodes_without_object(
|
||||
wallet=wallet,
|
||||
cid=cid,
|
||||
|
@ -286,7 +287,7 @@ def get_object_and_verify_hashes(
|
|||
nodes=nodes,
|
||||
)
|
||||
# for some reason we can face with case when nodes_list is empty due to object resides in all nodes
|
||||
if nodes_list is None:
|
||||
if nodes_list:
|
||||
random_node = random.choice(nodes)
|
||||
else:
|
||||
random_node = random.choice(nodes_list)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue