Skip to content

Commit 603de8d

Browse files
author
Evgeniy Zayats
committed
Update session token tests to match current node behavior, fixes #600
Signed-off-by: Evgeniy Zayats <zayatsevgeniy@nspcc.io>
1 parent b1767cc commit 603de8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_tests/testsuites/session_token/test_static_object_session_token.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def test_static_session_signed_by_other(
390390
temp_directory,
391391
)
392392
signed_token_file = sign_session_token(self.shell, session_token_file, stranger_wallet)
393-
with pytest.raises(Exception, match=OBJECT_ACCESS_DENIED):
393+
with pytest.raises(Exception, match=MALFORMED_REQUEST):
394394
head_object(
395395
user_wallet.path,
396396
storage_object.cid,
@@ -680,7 +680,7 @@ def test_static_session_put_verb(
680680
f"Put verb should be restricted for static session for {request.node.callspec.id}"
681681
)
682682
storage_object = storage_objects[0]
683-
with pytest.raises(Exception, match=OBJECT_ACCESS_DENIED):
683+
with pytest.raises(Exception, match=MALFORMED_REQUEST):
684684
put_object_to_random_node(
685685
user_wallet.path,
686686
storage_object.file_path,

0 commit comments

Comments
 (0)