544 Commits

Author SHA1 Message Date
Georgiy
0493a88190 (#1966) Test for incompatible overridding RECURRENCE-ID dt type 2026-02-05 19:58:32 +03:00
Georgiy
4e88cbbbc2 Merge branch 'master' of github.com:metallerok/Radicale into recurrence_all_day_comparsion 2026-02-04 19:34:52 +03:00
Georgiy
76d798ccd5 (#1979) test for overridden all day rrule event 2026-02-04 19:26:12 +03:00
Tobias Brox
0388051046 Fix unclosed scandir iterator in path_to_filesystem
Use os.scandir() as a context manager to ensure the iterator is
properly closed. This fixes ResourceWarning: unclosed scandir iterator
that occurs when the iterator is garbage collected without being closed.

Fixes #1972

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 17:02:14 +01:00
Peter Bieringer
2351f49ae4 add testcases 2026-01-22 21:36:07 +01:00
Peter Bieringer
fa38e25468 add files for testcase 2026-01-22 21:36:07 +01:00
Peter Bieringer
02a6cd55e3 fix for lint 2026-01-22 06:35:12 +01:00
Peter Bieringer
a75e3ebdec Testcase for PR#1968 (MOVE with URL-encoded Destination header) 2026-01-22 06:30:38 +01:00
Peter Bieringer
373ffaed2e add htpasswd test cases for SHA256/512 with explicit rounds 2026-01-08 05:38:21 +01:00
Peter Bieringer
f676dd7621 cosmetics 2026-01-06 17:41:35 +01:00
Peter Bieringer
3eb5f32d3d update copyright year 2026-01-06 17:34:43 +01:00
Peter Bieringer
27eedc098d skip bcrypt tests if not usable 2026-01-06 17:34:26 +01:00
Peter Bieringer
e2532ff2a7 display module versions on test start 2026-01-06 17:34:04 +01:00
John Wiegley
1f76b08831 Add CardDAV supported-address-data, update vCards to 4.0 (#1948)
* Add CardDAV supported-address-data, update vCards to 4.0

- radicale/app/propfind.py: Add CS:getctag and CR:supported-address-data
  properties to VADDRESSBOOK collections in allprop responses; implement
  CR:supported-address-data handler that advertises vCard 4.0 as preferred
  format with 3.0 fallback per RFC 6352 section 6.2.2

- radicale/tests/static/contact1.vcf: Update from vCard 3.0 to 4.0 format

- radicale/tests/static/contact_multiple.vcf: Update both contact entries
  from vCard 3.0 to 4.0 format

- radicale/tests/static/contact_photo_with_data_uri.vcf: Update from vCard
  3.0 to 4.0 format; change PHOTO property from 3.0 syntax with ENCODING=b
  and TYPE parameters to 4.0 data URI syntax

* Conditionally offer vCard 4.0 based on vobject version

- Add vobject_supports_vcard4() helper function in utils.py
- Modify propfind.py to only advertise vCard 4.0 if vobject >= 1.0.0
- Add vCard 3.0 static test files for fallback testing
- Add tests for both vCard 3.0 and 4.0 contacts (v4 tests skipped if
  vobject < 1.0.0)
- Add propfind tests for CR:supported-address-data property

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Default vCard fixtures to v3.0, add explicit v4 files

- contact1.vcf: Change VERSION from 4.0 to 3.0 to make vCard 3.0 the default
  test fixture format, since vCard 3.0 is more widely supported

- contact1_v3.vcf: Delete file as contact1.vcf now serves as the v3.0 fixture

- contact1_v4.vcf: Add new file with VERSION 4.0 for explicit vCard 4.0
  testing with vobject >= 1.0.0

- contact_multiple.vcf: Change VERSION from 4.0 to 3.0 for both contacts to
  align with new default

- contact_multiple_v3.vcf: Delete file as contact_multiple.vcf now serves as
  the v3.0 fixture

- contact_multiple_v4.vcf: Add new file with VERSION 4.0 for both contacts

- contact_photo_with_data_uri.vcf: Change VERSION from 4.0 to 3.0 and update
  PHOTO property to use v3.0 format with ENCODING=b;TYPE=png parameters

- contact_photo_with_data_uri_v3.vcf: Delete file as
  contact_photo_with_data_uri.vcf now serves as the v3.0 fixture

- contact_photo_with_data_uri_v4.vcf: Add new file with VERSION 4.0 and v4.0
  PHOTO data URI format

- test_base.py: Update test methods to use renamed fixture files, with v3.0
  tests using default fixtures and v4.0 tests using explicit _v4.vcf files

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 16:28:10 +01:00
Peter Bieringer
81b3c28737 test RFC4791#5.2.5: SHOULD NOT be returned by a PROPFIND DAV:allprop request 2025-12-12 08:49:23 +01:00
Peter Bieringer
c1f39d24f7 add new test ics 2025-12-11 23:14:08 +01:00
Peter Bieringer
9a31087dfa add testcases for max-resource-size 2025-12-11 23:08:21 +01:00
Peter Bieringer
c3dfd5584d add test case for max-resource-size and getctag 2025-12-11 08:54:42 +01:00
Peter Bieringer
a60e86671b extend copyright 2025-12-10 18:10:51 +01:00
Peter Bieringer
64f5e58549 add support for logging XML request conditionally for profiling 2025-12-10 18:09:04 +01:00
Peter Bieringer
5b2cb5c0bf add new test cases for broken items 2025-12-01 18:52:20 +01:00
Peter Bieringer
85f1850b19 make flake8 happy 2025-11-16 17:03:59 +01:00
Peter Bieringer
91cee5e514 extend test with remote host+useragent 2025-11-16 17:02:31 +01:00
Peter Bieringer
03481a1184 add support for remote host+useragent 2025-11-16 17:02:04 +01:00
Peter Bieringer
4980172def extend copyright 2025-11-16 16:57:31 +01:00
Peter Bieringer
3fecba62e7 fix comment 2025-11-16 16:22:20 +01:00
Peter Bieringer
b2320c607d test case for invalid-sync token with user 2025-11-16 16:07:13 +01:00
Peter Bieringer
ed849a7271 add support for optional arguments 2025-11-16 16:06:26 +01:00
Peter Bieringer
bf8619a41c add support for http_remote_user 2025-11-15 15:32:13 +01:00
Peter Bieringer
54bd8023b3 add additional etag related tests 2025-10-20 07:41:27 +02:00
Peter Bieringer
bd0d5038b3 cosmetics 2025-10-20 07:41:12 +02:00
Peter Bieringer
8ef8b767f3 strict_preconditions: new config option / test cases 2025-10-19 18:56:23 +02:00
Peter Bieringer
6df86987c2 test: add support for optional HTTP_IF_MATCH header 2025-10-19 18:55:58 +02:00
Peter Bieringer
d83f9fe29d extend copyright related to https://github.com/Kozea/Radicale/pull/1883 2025-09-26 07:53:28 +02:00
Peter Bieringer
7604d44701 make flake8 happy 2025-09-24 21:36:33 +02:00
Peter Bieringer
77e7745f93 make mypy happy 2025-09-24 21:30:06 +02:00
Peter Bieringer
ec9ef124ff add new test cases for #1880 and #1812 2025-09-24 21:17:37 +02:00
Peter Bieringer
d1679a53b1 new test items 2025-09-24 21:17:13 +02:00
Johannes Berg
256ca59aaf auth: clean up remote IP parameter/documentation
Make the remote IP parameter more generic and make it an enum
determining the source instead of a boolean. Also fix the
changelog entry.

Both as requested, I managed to miss those comments previously.
2025-09-09 20:25:49 +02:00
Johannes Berg
b5a1ea911d auth: dovecot: pass remote IP (rip=) to auth server
If known, let the auth server know where the client came
from, using REMOTE_ADDR or, optionally/configurably, the
X-Remote-Addr header value (which is needed when running
behind a trusted proxy.)

Addresses #1859.
2025-09-09 12:10:00 +02:00
Peter Bieringer
6d3cd8146f fix lint issue related to 9d5772901d 2025-08-24 10:14:28 +02:00
Peter Bieringer
9d5772901d run rabbitmq tests only if module pika is available 2025-08-23 07:29:45 +02:00
Peter Bieringer
7f28f69452 extend test for items having tzinfo only on dtstart or dtend set for whatever reason, overtake tzinfo from the other one 2025-08-22 07:51:15 +02:00
Peter Bieringer
2a808fd373 test items having tzinfo only on dtstart or dtend set for whatever reason 2025-08-22 07:50:47 +02:00
Nate Harris
998b2e2121 - Fix unit tests for hook email trigger conditional based on end date 2025-08-21 00:21:11 -06:00
Nate Harris
f32e50bc9d - Add unit tests to confirm emails not triggered when adding/deleting event with past end date 2025-08-14 00:06:55 -06:00
Peter Bieringer
7bedca72e2 catch OS without flock 2025-08-12 16:48:04 +02:00
Peter Bieringer
91d4dc3ef1 make mypy happy 2025-08-12 16:42:06 +02:00
Peter Bieringer
97d30478c7 add tests for storage hook placeholders 2025-08-12 16:12:38 +02:00
Peter Bieringer
6a8f5f4a5b extend/adjust copyright 2025-08-12 16:12:15 +02:00