Skip to content

Commit

Permalink
session: fix tests to match updated node behavior (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-khimov authored Apr 3, 2024
2 parents 71a7d6e + 51683b3 commit e3d518c
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 e3d518c

Please sign in to comment.