forked from TrueCloudLab/frostfs-testcases
[#200] Validate object get range hash with different nodes
Validate object get range hash with different nodes Signed-off-by: Mikhail Kadilov m.kadilov@yadro.com
parent
1ea1651c59
commit
fece00f103
|
@ -465,7 +465,7 @@ class TestObjectApi(ClusterTestBase):
|
|||
@allure.title("Trying to execute object get range hash command on node from container and node not from container")
|
||||
def test_object_get_range_hash_with_different_nodes(self, default_wallet: str, object_size: ObjectSize):
|
||||
"""
|
||||
Validate get range hash command with different nodes
|
||||
Validate get range hash command with node from container and node not from container
|
||||
"""
|
||||
|
||||
wallet = default_wallet
|
||||
|
@ -483,9 +483,9 @@ class TestObjectApi(ClusterTestBase):
|
|||
cluster=self.cluster,
|
||||
)
|
||||
container_node = nodes[0]
|
||||
# range_cut????????
|
||||
range_cut="0:10"
|
||||
with reporter.step("Execute command on container node"):
|
||||
result = get_range_hash(wallet, cid, oid, range_cut, container_node.host, self.cluster.default_rpc_endpoint)
|
||||
result = get_range_hash(wallet, cid, oid, range_cut, container_node.host, container_node.storage_node.get_rpc_endpoint)
|
||||
assert "object not found" not in result
|
||||
|
||||
|
||||
|
@ -494,9 +494,9 @@ class TestObjectApi(ClusterTestBase):
|
|||
if cluster_node.id != container_node.id:
|
||||
not_container_node = cluster_node
|
||||
break
|
||||
# range_cut????????????????
|
||||
range_cut="0:10"
|
||||
with reporter.step("Execute command on not container node"):
|
||||
result = get_range_hash(wallet, cid, oid, range_cut, not_container_node.host, self.cluster.default_rpc_endpoint)
|
||||
result = get_range_hash(wallet, cid, oid, range_cut, not_container_node.host, not_container_node.storage_node.get_rpc_endpoint)
|
||||
assert "object not found" not in result
|
||||
|
||||
|
||||
|
@ -505,7 +505,7 @@ class TestObjectApi(ClusterTestBase):
|
|||
@allure.title("Trying to execute object get range hash command on node from container and node not from container")
|
||||
def test_object_get_range_with_different_nodes(self, default_wallet: str, object_size: ObjectSize):
|
||||
"""
|
||||
Validate get range command with different nodes
|
||||
Validate get range command with node from container and node not from container
|
||||
"""
|
||||
|
||||
wallet = default_wallet
|
||||
|
@ -523,18 +523,17 @@ class TestObjectApi(ClusterTestBase):
|
|||
cluster=self.cluster,
|
||||
)
|
||||
container_node = nodes[0]
|
||||
# range_cut????????
|
||||
range_cut="0:10"
|
||||
with reporter.step("Execute command on container node"):
|
||||
result = get_range(wallet, cid, oid, range_cut, container_node.host, self.cluster.default_rpc_endpoint)
|
||||
assert "object not found" not in result
|
||||
|
||||
|
||||
# taking node NOT from container
|
||||
for cluster_node in self.cluster.cluster_nodes:
|
||||
if cluster_node.id != container_node.id:
|
||||
not_container_node = cluster_node
|
||||
break
|
||||
# range_cut????????????????
|
||||
range_cut="0:10"
|
||||
with reporter.step("Execute command on not container node"):
|
||||
result = get_range(wallet, cid, oid, range_cut, not_container_node.host, self.cluster.default_rpc_endpoint)
|
||||
assert "object not found" not in result
|
||||
|
|
Loading…
Reference in New Issue