Skip to content

Commit

Permalink
session: fix tests to match updated node behavior
Browse files Browse the repository at this point in the history
This effectively reverts 603de8d, but current
node returns 2048 again.

Signed-off-by: Roman Khimov <[email protected]>
  • Loading branch information
roman-khimov committed Apr 2, 2024
1 parent 71a7d6e commit 51683b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 51683b3

Please sign in to comment.