Skip to content

Commit

Permalink
Disable ssl in token auth testscase
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
ipanova authored and lubosmj committed May 17, 2024
1 parent 0414124 commit 7190077
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ def test_invalid_user(pulp_settings, local_registry):
async def get_token():
url = f"{pulp_settings.TOKEN_SERVER}?service={local_registry.name}"
async with aiohttp.ClientSession() as session:
async with session.get(url, auth=aiohttp.BasicAuth("test", "invalid")) as response:
async with session.get(
url, auth=aiohttp.BasicAuth("test", "invalid"), ssl=False
) as response:
return response.status

status = asyncio.run(get_token())
Expand Down

0 comments on commit 7190077

Please sign in to comment.