diff options
author | Maxim Devaev <[email protected]> | 2023-01-22 22:50:06 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-01-22 23:03:23 +0200 |
commit | 2d772cc30e562e40a3d0a91366883c3278df6bb6 (patch) | |
tree | bd563257f835e77dfb454c776cfb52558ebc2afe /testenv | |
parent | 828778f10afb5d9e3824c72ba559e448e158b4ce (diff) |
TOTP implementation
Diffstat (limited to 'testenv')
-rw-r--r-- | testenv/Dockerfile | 2 | ||||
-rw-r--r-- | testenv/tests/apps/kvmd/test_auth.py | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/testenv/Dockerfile b/testenv/Dockerfile index 21c3dfa6..c9bb5628 100644 --- a/testenv/Dockerfile +++ b/testenv/Dockerfile @@ -43,6 +43,8 @@ RUN pacman --noconfirm --ask=4 -Syy \ python-aiofiles \ python-periphery \ python-passlib \ + python-pyotp \ + python-qrcode \ python-pyserial \ python-setproctitle \ python-psutil \ diff --git a/testenv/tests/apps/kvmd/test_auth.py b/testenv/tests/apps/kvmd/test_auth.py index 8b8577bd..3e47a6f0 100644 --- a/testenv/tests/apps/kvmd/test_auth.py +++ b/testenv/tests/apps/kvmd/test_auth.py @@ -59,6 +59,8 @@ async def _get_configured_manager( external_type=("htpasswd" if external_path else ""), external_kwargs=(_make_service_kwargs(external_path) if external_path else {}), + + totp_secret_path="", ) try: @@ -149,6 +151,8 @@ async def test_ok__disabled() -> None: external_type="", external_kwargs={}, + + totp_secret_path="", ) assert not manager.is_auth_enabled() |