davical/testing/tests/regression-suite/2500-is-defined-Setup-MKCALENDAR.test
Andrew Ruthven 4a380b12a2 Fixes to is-defined and is-not-defined prop-filter
Gosh, this was completely broken previously. A number of different scenarios now work.

I have used some of the state I've seen in a largish production database with the
presence of NULL and empty strings. I've assumed that empty string should be treated
as is-not-defined. Happy to be talked out of that.

Closes #281.
2023-03-12 20:05:48 +01:00

34 lines
766 B
Plaintext

#
# Make a new collect for events
#
TYPE=MKCALENDAR
URL=http://regression.host/caldav.php/user1/
HEADER=User-Agent: DAViCal test/1.12.0
HEADER=Content-Type: text/xml; charset=utf-8
HEADER=Accept: */*
HEADER=Content-Type: application/xml; charset="utf-8"
HEAD
BEGINDATA
<?xml version="1.0" encoding="utf-8" ?>
<C:mkcalendar xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<D:set>
<D:prop>
<D:displayname>Events_tests</D:displayname>
<C:supported-calendar-component-set>
<C:comp name="VEVENT"/>
<C:comp name="VTODO"/>
<C:comp name="VTIMEZONE"/>
<C:comp name="VFREEBUSY"/>
</C:supported-calendar-component-set>
</D:prop>
</D:set>
</C:mkcalendar>
ENDDATA
QUERY
SELECT * FROM collection WHERE dav_name = '/user1/Events tests';
ENDQUERY