diff --git a/radicale/tests/test_sharing.py b/radicale/tests/test_sharing.py index e50bfc04..35b98203 100644 --- a/radicale/tests/test_sharing.py +++ b/radicale/tests/test_sharing.py @@ -4303,6 +4303,46 @@ permissions: RrWw""") assert path_shared_r + "contact3-with-bday.ics" in responses assert path_shared_r + "contact1.ics" not in responses + # get elements as user + logging.info("\n*** REPORT collection entries user -> ok") + _, responses = self.report(path_shared_r, """\ + + + + + + + """ + path_shared_r + "contact2-with-bday.ics" + """ + """ + path_shared_r + "contact3-with-bday.ics" + """ +""", login="user:userpw") + logging.debug("resonses: %r", responses) + assert path_shared_r + "contact2-with-bday.ics" in responses + assert path_shared_r + "contact3-with-bday.ics" in responses + assert path_shared_r + "contact1.ics" not in responses + + # timerange filter elements as user + logging.info("\n*** REPORT collection entries with timerange user -> ok") + _, responses = self.report(path_shared_r, """\ + + + + + + + + + + + + + + +""", login="user:userpw") + logging.debug("resonses: %r", responses) + assert path_shared_r + "contact2-with-bday.ics" in responses + assert path_shared_r + "contact3-with-bday.ics" in responses + assert path_shared_r + "contact1.ics" not in responses + def test_sharing_api_bday_complex(self) -> None: """share-by-map API usage tests related to partial overlay.""" self.configure({"auth": {"type": "htpasswd",