From fece00f103a7ff8a80b4ade6c6ef44970df73540 Mon Sep 17 00:00:00 2001 From: mkadilov Date: Thu, 22 Feb 2024 14:31:08 +0300 Subject: [PATCH] [#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 --- .../testsuites/object/test_object_api.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pytest_tests/testsuites/object/test_object_api.py b/pytest_tests/testsuites/object/test_object_api.py index 856a72e..ac53c01 100755 --- a/pytest_tests/testsuites/object/test_object_api.py +++ b/pytest_tests/testsuites/object/test_object_api.py @@ -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