summaryrefslogtreecommitdiff
path: root/testenv
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-01-22 22:50:06 +0200
committerMaxim Devaev <[email protected]>2023-01-22 23:03:23 +0200
commit2d772cc30e562e40a3d0a91366883c3278df6bb6 (patch)
treebd563257f835e77dfb454c776cfb52558ebc2afe /testenv
parent828778f10afb5d9e3824c72ba559e448e158b4ce (diff)
TOTP implementation
Diffstat (limited to 'testenv')
-rw-r--r--testenv/Dockerfile2
-rw-r--r--testenv/tests/apps/kvmd/test_auth.py4
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()