From 51683b319a9384bcb024459aeca331fe576adc76 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Tue, 2 Apr 2024 21:52:33 +0300 Subject: [PATCH] session: fix tests to match updated node behavior This effectively reverts 603de8de398fcaffd3959cba8bd348860fab2f71, but current node returns 2048 again. Signed-off-by: Roman Khimov --- .../tests/session_token/test_static_object_session_token.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytest_tests/tests/session_token/test_static_object_session_token.py b/pytest_tests/tests/session_token/test_static_object_session_token.py index 597eab9c5..b31aff15d 100644 --- a/pytest_tests/tests/session_token/test_static_object_session_token.py +++ b/pytest_tests/tests/session_token/test_static_object_session_token.py @@ -380,7 +380,7 @@ def test_static_session_signed_by_other( temp_directory, ) signed_token_file = sign_session_token(self.shell, session_token_file, stranger_wallet) - with pytest.raises(Exception, match=MALFORMED_REQUEST): + with pytest.raises(Exception, match=OBJECT_ACCESS_DENIED): head_object( user_wallet.path, storage_object.cid, @@ -670,7 +670,7 @@ def test_static_session_put_verb( f"Put verb should be restricted for static session for {request.node.callspec.id}" ) storage_object = storage_objects[0] - with pytest.raises(Exception, match=MALFORMED_REQUEST): + with pytest.raises(Exception, match=OBJECT_ACCESS_DENIED): put_object_to_random_node( user_wallet.path, storage_object.file_path,