summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-04-08 06:19:02 +0300
committerDevaev Maxim <[email protected]>2019-04-08 06:19:02 +0300
commitd8a5e3837152c7db21b96a585523481337247e6f (patch)
tree8e738ecda2c6d5c94df88d0f6c57ebb926dfc96f /tests
parent9243d2a00c86aa9b5df2b1df20d2ba57be0bed47 (diff)
basic -> htpasswd
Diffstat (limited to 'tests')
-rw-r--r--tests/test_app_htpasswd.py2
-rw-r--r--tests/test_validators_auth.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_app_htpasswd.py b/tests/test_app_htpasswd.py
index 71d34fff..a7fe7395 100644
--- a/tests/test_app_htpasswd.py
+++ b/tests/test_app_htpasswd.py
@@ -59,7 +59,7 @@ def _run_main(htpasswd: passlib.apache.HtpasswdFile, cmd: List[str]) -> None:
"kvmd-htpasswd",
*cmd,
"--set-options",
- "kvmd/auth/basic/htpasswd=" + htpasswd.path,
+ "kvmd/auth/htpasswd/file=" + htpasswd.path,
])
diff --git a/tests/test_validators_auth.py b/tests/test_validators_auth.py
index fd13a450..0fae541c 100644
--- a/tests/test_validators_auth.py
+++ b/tests/test_validators_auth.py
@@ -108,7 +108,7 @@ def test_fail__valid_auth_token(arg: Any) -> None:
print(valid_auth_token(arg))
[email protected]("arg", ["BASIC ", "basic"])
[email protected]("arg", ["HTPASSWD ", "htpasswd"])
def test_ok__valid_auth_type(arg: Any) -> None:
assert valid_auth_type(arg) == arg.strip().lower()