Skip to content

Commit

Permalink
tests check
Browse files Browse the repository at this point in the history
  • Loading branch information
feyruzb committed Sep 24, 2024
1 parent 5256b0e commit e37683a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/server/codechecker_server/api/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ def performLogin(self, auth_method, auth_string):
LOG.error("User %s is not authorized " +
"to access this service.", username)
raise codechecker_api_shared.ttypes.RequestFailed(
codechecker_api_shared.ttypes.ErrorCode.AUTH_DENIED,
"User is not authorized to access this service")
codechecker_api_shared.ttypes.ErrorCode.AUTH_DENIED,
"User is not authorized to access this service")
LOG.error("Could not negotiate via common authentication method.")
raise codechecker_api_shared.ttypes.RequestFailed(
codechecker_api_shared.ttypes.ErrorCode.AUTH_DENIED,
Expand Down
1 change: 1 addition & 0 deletions web/tests/functional/authentication/test_authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def test_privileged_access(self):

with self.assertRaises(RequestFailed):
auth_client.performLogin("Username:Password", None)
print("Empty credentials gave us a token!")

# A non-authenticated session should return an empty user.
user = auth_client.getLoggedInUser()
Expand Down

0 comments on commit e37683a

Please sign in to comment.