From f117fd06af21307b134c5dc60ad02808c6b35212 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Thu, 18 Jul 2024 06:49:10 +0200 Subject: [PATCH] add missing test for auth/lc_username --- radicale/tests/test_auth.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/radicale/tests/test_auth.py b/radicale/tests/test_auth.py index 858e08279..bb298f1a4 100644 --- a/radicale/tests/test_auth.py +++ b/radicale/tests/test_auth.py @@ -115,6 +115,11 @@ def test_htpasswd_whitespace_password(self) -> None: def test_htpasswd_comment(self) -> None: self._test_htpasswd("plain", "#comment\n #comment\n \ntmp:bepo\n\n") + def test_htpasswd_lc_username(self) -> None: + self.configure({"auth": {"lc_username": "True"}}) + self._test_htpasswd("plain", "tmp:bepo", ( + ("tmp", "bepo", True), ("TMP", "bepo", True), ("tmp1", "bepo", False))) + def test_remote_user(self) -> None: self.configure({"auth": {"type": "remote_user"}}) _, responses = self.propfind("/", """\