forked from TrueCloudLab/frostfs-testcases
Small fixes for tests
Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
parent
05924784ab
commit
3afdaa0e2a
3 changed files with 14 additions and 14 deletions
|
@ -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]
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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,15 +210,16 @@ 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}"):
|
||||||
method_under_test(
|
with expect_not_raises():
|
||||||
user_wallet.path,
|
method_under_test(
|
||||||
storage_object.cid,
|
user_wallet.path,
|
||||||
storage_object.oid,
|
storage_object.cid,
|
||||||
shell=self.shell,
|
storage_object.oid,
|
||||||
endpoint=self.cluster.default_rpc_endpoint,
|
shell=self.shell,
|
||||||
session=static_sessions[verb],
|
endpoint=self.cluster.default_rpc_endpoint,
|
||||||
range_cut=range_to_test,
|
session=static_sessions[verb],
|
||||||
)
|
range_cut=range_to_test,
|
||||||
|
)
|
||||||
|
|
||||||
@allure.title("Validate static session with search operation")
|
@allure.title("Validate static session with search operation")
|
||||||
@pytest.mark.static_session
|
@pytest.mark.static_session
|
||||||
|
|
Loading…
Reference in a new issue