From 1c292bff6018c20b8ec46a4e33c56b2b55b53ebe Mon Sep 17 00:00:00 2001 From: Evgeniy Zayats Date: Fri, 19 Jan 2024 17:37:27 -0500 Subject: [PATCH] Set MaxObjectSize suitable for s3 multipart and http tests Signed-off-by: Evgeniy Zayats --- dynamic_env_pytest_tests/tests/conftest.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dynamic_env_pytest_tests/tests/conftest.py b/dynamic_env_pytest_tests/tests/conftest.py index 038caed9a..99086d8fc 100644 --- a/dynamic_env_pytest_tests/tests/conftest.py +++ b/dynamic_env_pytest_tests/tests/conftest.py @@ -1,6 +1,7 @@ import os import shutil import uuid +import time from typing import Optional import allure @@ -36,8 +37,9 @@ def neofs_env(request): neofs_env.neofs_adm().morph.set_config( rpc_endpoint=f"http://{neofs_env.morph_rpc}", alphabet_wallets=neofs_env.alphabet_wallets_dir, - post_data=f"ContainerFee=0 ContainerAliasFee=0 MaxObjectSize=1024", + post_data=f"ContainerFee=0 ContainerAliasFee=0 MaxObjectSize=10485760", ) + time.sleep(30) yield neofs_env @@ -46,6 +48,13 @@ def neofs_env(request): else: if not request.config.getoption("--load-env"): neofs_env.kill() + + allure.attach.file(neofs_env.s3_gw.stderr, "S3 GW log", allure.attachment_type.TEXT) + allure.attach.file(neofs_env.http_gw.stderr, "S3 GW log", allure.attachment_type.TEXT) + for idx, ir in enumerate(neofs_env.inner_ring_nodes): + allure.attach.file(ir.stderr, f"IR{idx} log", allure.attachment_type.TEXT) + for idx, sn in enumerate(neofs_env.storage_nodes): + allure.attach.file(sn.stderr, f"SN{idx} log", allure.attachment_type.TEXT) @pytest.fixture(scope="session")