forked from TrueCloudLab/frostfs-testcases
[#179] Change argument func
Signed-off-by: Dmitriy Zayakin <d.zayakin@yadro.com>
This commit is contained in:
parent
9e89dba03d
commit
5ddc31cca6
2 changed files with 6 additions and 6 deletions
|
@ -41,6 +41,8 @@ from pytest_tests.resources.common import HOSTING_CONFIG_FILE, TEST_CYCLES_COUNT
|
||||||
|
|
||||||
logger = logging.getLogger("NeoLogger")
|
logger = logging.getLogger("NeoLogger")
|
||||||
|
|
||||||
|
SERVICE_ACTIVE_TIME = 20
|
||||||
|
|
||||||
# Add logs check test even if it's not fit to mark selectors
|
# Add logs check test even if it's not fit to mark selectors
|
||||||
def pytest_configure(config: pytest.Config):
|
def pytest_configure(config: pytest.Config):
|
||||||
markers = config.option.markexpr
|
markers = config.option.markexpr
|
||||||
|
@ -367,9 +369,6 @@ def after_deploy_healthcheck(cluster: Cluster):
|
||||||
parallel(readiness_on_node, cluster.cluster_nodes)
|
parallel(readiness_on_node, cluster.cluster_nodes)
|
||||||
|
|
||||||
|
|
||||||
SERVICE_ACTIVE_TIME = 20
|
|
||||||
|
|
||||||
|
|
||||||
@wait_for_success(60 * SERVICE_ACTIVE_TIME * 3, 60, title="Wait for {cluster_node} readiness")
|
@wait_for_success(60 * SERVICE_ACTIVE_TIME * 3, 60, title="Wait for {cluster_node} readiness")
|
||||||
def readiness_on_node(cluster_node: ClusterNode):
|
def readiness_on_node(cluster_node: ClusterNode):
|
||||||
# TODO: Move to healtcheck classes
|
# TODO: Move to healtcheck classes
|
||||||
|
|
|
@ -66,9 +66,10 @@ class TestS3GateMultipart(ClusterTestBase):
|
||||||
upload_key = "multipart_abort"
|
upload_key = "multipart_abort"
|
||||||
|
|
||||||
with reporter.step(f"Get related container_id for bucket '{bucket}'"):
|
with reporter.step(f"Get related container_id for bucket '{bucket}'"):
|
||||||
container_id = search_container_by_name(
|
for cluster_node in self.cluster.cluster_nodes:
|
||||||
default_wallet, bucket, self.shell, self.cluster.default_rpc_endpoint
|
container_id = search_container_by_name(bucket, cluster_node)
|
||||||
)
|
if container_id:
|
||||||
|
break
|
||||||
|
|
||||||
with reporter.step("Create multipart upload"):
|
with reporter.step("Create multipart upload"):
|
||||||
upload_id = s3_client.create_multipart_upload(bucket, upload_key)
|
upload_id = s3_client.create_multipart_upload(bucket, upload_key)
|
||||||
|
|
Loading…
Reference in a new issue