extend test with remote host+useragent

This commit is contained in:
Peter Bieringer
2025-11-16 17:02:31 +01:00
parent 03481a1184
commit 91cee5e514

View File

@@ -1848,12 +1848,12 @@ permissions: RrWw""")
assert not sync_token
def test_report_sync_collection_invalid_sync_token_with_user(self) -> None:
"""Test sync-collection report with an invalid sync token and user"""
"""Test sync-collection report with an invalid sync token and user+host+useragent"""
self.configure({"auth": {"type": "none"}})
calendar_path = "/calendar.ics/"
self.mkcalendar(calendar_path)
sync_token, _ = self._report_sync_token(
calendar_path, "http://radicale.org/ns/sync/INVALID", login="testuser:")
calendar_path, "http://radicale.org/ns/sync/INVALID", login="testuser:", remote_host = "192.0.2.1", remote_useragent = "Testclient/1.0")
assert not sync_token
def test_propfind_sync_token(self) -> None: