diff options
author | Devaev Maxim <[email protected]> | 2019-04-27 05:16:00 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-04-27 05:16:00 +0300 |
commit | 493d160a6e87120b9f57493cc594f487ef140e90 (patch) | |
tree | 12344ac01b7d36a6055b4d22849e335decee2df6 /testenv/tests/auth/test_service_http.py | |
parent | 3476f52da9728995c978394748cec812d554ec2f (diff) |
single-shot auth using headers
Diffstat (limited to 'testenv/tests/auth/test_service_http.py')
-rw-r--r-- | testenv/tests/auth/test_service_http.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testenv/tests/auth/test_service_http.py b/testenv/tests/auth/test_service_http.py index c6f2b631..6c584dc1 100644 --- a/testenv/tests/auth/test_service_http.py +++ b/testenv/tests/auth/test_service_http.py @@ -73,7 +73,7 @@ async def test_ok(auth_server_port: int, kwargs: Dict) -> None: ("auth_plus_basic" if kwargs.get("user") else "auth"), ) async with get_configured_auth_service("http", url=url, **kwargs) as service: - assert not (await service.login("user", "foobar")) - assert not (await service.login("admin", "foobar")) - assert not (await service.login("user", "pass")) - assert (await service.login("admin", "pass")) + assert not (await service.authorize("user", "foobar")) + assert not (await service.authorize("admin", "foobar")) + assert not (await service.authorize("user", "pass")) + assert (await service.authorize("admin", "pass")) |