Skip to content

Commit

Permalink
Set MaxObjectSize suitable for s3 multipart and http tests
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeniy Zayats <[email protected]>
  • Loading branch information
Evgeniy Zayats committed Jan 21, 2024
1 parent ec862bf commit 1c292bf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dynamic_env_pytest_tests/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import shutil
import uuid
import time
from typing import Optional

import allure
Expand Down Expand Up @@ -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

Expand All @@ -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")
Expand Down

0 comments on commit 1c292bf

Please sign in to comment.