pikvm/pikvm#1204: Configurable global expiration policy

This commit is contained in:
Maxim Devaev
2025-02-09 00:40:48 +02:00
parent a7c3cdc1ea
commit 375a345820
4 changed files with 39 additions and 8 deletions

View File

@@ -61,6 +61,7 @@ async def _get_configured_manager(
manager = AuthManager(
enabled=True,
expire=0,
unauth_paths=unauth_paths,
internal_type="htpasswd",
@@ -250,6 +251,7 @@ async def test_ok__disabled() -> None:
try:
manager = AuthManager(
enabled=False,
expire=0,
unauth_paths=[],
internal_type="foobar",