Skip to content

Commit d6f8838

Browse files
author
Sergio García Prado
committed
ISSUE #59
* Fix minor bug.
1 parent b985a11 commit d6f8838

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

minos/api_gateway/rest/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ async def authenticate(host: str, port: str, method: str, path: str, authorizati
143143
async with ClientSession(headers=authorization_headers) as session:
144144
async with session.request(method=authentication_method, url=authentication_url) as response:
145145
if not response.ok:
146-
raise web.HTTPUnauthorized(text="The given does not have authorization to be forwarded.")
146+
raise web.HTTPUnauthorized(text="The given request does not have authorization to be forwarded.")
147147

148148
payload = await response.json()
149149
return payload["sub"]

tests/test_api_gateway/test_rest/test_authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ async def test_auth_unauthorized(self):
194194
response = await self.client.request("POST", url, headers=headers)
195195

196196
self.assertEqual(401, response.status)
197-
self.assertIn("The given does not have authorization to be forwarded", await response.text())
197+
self.assertIn("The given request does not have authorization to be forwarded", await response.text())
198198

199199

200200
class TestAuthUnreachable(AioHTTPTestCase):

0 commit comments

Comments
 (0)