add support for auth.type=denyall

This commit is contained in:
Peter Bieringer
2024-06-07 06:45:39 +02:00
parent eb577422f6
commit 5dd27d3c80
4 changed files with 40 additions and 1 deletions

View File

@@ -152,3 +152,11 @@ class TestBaseAuthRequests(BaseTest):
"""Custom authentication."""
self.configure({"auth": {"type": "radicale.tests.custom.auth"}})
self.propfind("/tmp/", login="tmp:")
def test_none(self) -> None:
self.configure({"auth": {"type": "none"}})
self.propfind("/tmp/", login="tmp:")
def test_denyall(self) -> None:
self.configure({"auth": {"type": "denyall"}})
self.propfind("/tmp/", login="tmp:", check=401)