Small fixes for tests

Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
Andrey Berezin 2022-12-08 13:21:38 +03:00 committed by Julia Kovshova
parent 071914b45c
commit e99cc7d05d
3 changed files with 14 additions and 14 deletions

View file

@ -98,8 +98,7 @@ class TestObjectApiWithBearerToken(ClusterTestBase):
request: FixtureRequest, request: FixtureRequest,
): ):
allure.dynamic.title( allure.dynamic.title(
f"Check that objects can be deleted from any node using s3gate wallet with bearer " f"Object can be deleted from any node using s3gate wallet with bearer token for {request.node.callspec.id}"
f"token for {request.node.callspec.id}"
) )
s3_gate_wallet = self.cluster.s3gates[0] s3_gate_wallet = self.cluster.s3gates[0]
@ -135,8 +134,7 @@ class TestObjectApiWithBearerToken(ClusterTestBase):
request: FixtureRequest, request: FixtureRequest,
): ):
allure.dynamic.title( allure.dynamic.title(
"Check that objects can be deleted from any node using s3gate wallet with bearer " f"Object can be fetched from any node using s3gate wallet with bearer token for {request.node.callspec.id}"
f"token for {request.node.callspec.id}"
) )
s3_gate_wallet = self.cluster.s3gates[0] s3_gate_wallet = self.cluster.s3gates[0]

View file

@ -17,7 +17,7 @@ logger = logging.getLogger("NeoLogger")
@pytest.mark.sanity @pytest.mark.sanity
@pytest.mark.grpc_api @pytest.mark.grpc_api
class ObjectApiLifetimeTest(ClusterTestBase): class TestObjectApiLifetime(ClusterTestBase):
@allure.title("Test object life time") @allure.title("Test object life time")
@pytest.mark.parametrize( @pytest.mark.parametrize(
"object_size", "object_size",

View file

@ -20,6 +20,7 @@ from python_keywords.neofs_verbs import (
put_object_to_random_node, put_object_to_random_node,
search_object, search_object,
) )
from test_control import expect_not_raises
from wallet import WalletFile from wallet import WalletFile
from helpers.storage_object_info import StorageObjectInfo from helpers.storage_object_info import StorageObjectInfo
@ -209,6 +210,7 @@ class TestObjectStaticSession(ClusterTestBase):
for range_to_test in ranges_to_test: for range_to_test in ranges_to_test:
with allure.step(f"Check range {range_to_test}"): with allure.step(f"Check range {range_to_test}"):
with expect_not_raises():
method_under_test( method_under_test(
user_wallet.path, user_wallet.path,
storage_object.cid, storage_object.cid,