Commit Graph
512 Commits
Author SHA1 Message Date
Jamie McClymont e449529f34 Fix tests after freebusy query changes
The todo item added in 0514-iCal-PUT-VTODO.test was apparently not picked up by
the PL/pgSQL functions, which as far as I can tell is an error, since the event
is in the 2006-2007 range covered by the query. The new
first_instance_start/last_instance_end method for determining freebusy
information now allows the todo to appear in freebusy.
2019-01-03 17:48:43 +13:00
Jamie McClymont 0c006b5c7c Make the recurrence range columns in the database tz-aware 2019-01-03 16:04:28 +13:00
Florian Schlichting 9e8c3c47c4 Test: max-resource-size is no longer infinity
c5891abc7f brought back a new, higher limit, which is configurable by
the site admin.
2018-12-22 00:18:27 +01:00
Florian Schlichting 1301b2c494 Apache 2.4.35 stops sending Content-Type headers for 204 No Content responses
Normalize results so tests work with newer and older versions

This change is similar to e565cc0a5e and
following

From the Apache 2.4.35 changelog:

  *) http: Enforce consistently no response body with both 204 and 304
     statuses.  [Yann Ylavic]
2018-12-22 00:12:54 +01:00
Jamie McClymont 0e0a07eb30 Fix returning dead properties in an allprop PROPFIND
dead_properties is an assoc.array from name to value, but it was being merged
with simple arrays of property names.

This means that tests 0824 and 0828 now actually return the dead properties, so
I've updated those result files.

Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz>
2018-11-30 15:59:04 +13:00
Andrew Ruthven 0c074e4348 Explicitly set the Charset to use, and look for the usual format.
In the GitLab CI environment, the command:

@header("Content-Type: text/plain");

Generates the Content-Type line of:

Content-Type: text/plain; charset=UTF-8

But on my workstation it generates this:

Content-Type: text/plain;charset=UTF-8

By adding that charset to our call to @header, we receive a
predictable result.
2018-11-29 13:40:12 +13:00
Andrew Ruthven bdc480b785 Merge branch 'freebusy-no-ci' into 'master'
Correctly place floating events in freebusy

Closes #169 and #146

See merge request davical-project/davical!57
2018-11-13 22:19:49 +00:00
Andrew Ruthven b0a1c9212d Ignore the PostgreSQL version for tests
This just creates bogus test result diffs.
2018-11-12 17:59:51 +13:00
Jamie McClymont ec67b28bf0 Guess the timezone of non-all-day floating events in freebusy
Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz>
2018-11-09 15:41:02 +13:00
Jamie McClymont 91aaf48648 Guess the timezone of VALUE=DATE events in freebusy
Resolves #146
2018-10-31 12:09:45 +13:00
Andrew Ruthven bc61d51f5b Test that max-resource-size is infinity.
Commit 9a430130d8 removed the limit,
update the regression tests to reflect this.
2018-10-02 19:55:25 +13:00
Florian Schlichting 4e5d3ceda4 update unit test due to previous commit 2018-01-11 22:13:07 +01:00
Florian Schlichting bc9c39c455 add regression tests for iCal handling calendar delegations 2018-01-09 23:11:04 +01:00
Florian Schlichting 4335e790d1 drop tests/regression-suite/0528, same as 0527 2018-01-09 22:15:29 +01:00
Florian Schlichting 17c2022122 group-member-set and group-membership queries on proxy resources should be handled in DAVResource
Otherwise we cannot be sure if the resource we are looking at is a
proxy. Looking at the request as we did in DAVPrincipal is wrong, as one
request can result in several resources to be examined, only some of
which may be proxies.

BTW looking at the regression test changes, I'm not sure having
calendar-proxy-read-for on proxy principals is correct, but caldav-proxy
seems to have nothing to say on that so we leave it for now.
2018-01-09 22:11:30 +01:00
Florian Schlichting 6687bdcf03 update regression tests due to FetchProxyGroups changes 2018-01-09 01:30:38 +01:00
Florian Schlichting a7ba436f2f advertise support for principal-match REPORT
and a few more bits inspired by CalDAV/aclreports.xml:
    - strict Depth header checking
    - principal-match: match on dav_name if not $match_self
    - principal-match can "alternatively" return resources in a collection
      that belong to a principal, like a user's calendars when we query
      the principal URI
2018-01-08 22:51:22 +01:00
Florian Schlichting 5dc4aed87c testsuite: support /principals/users/ and similar special URLs 2017-10-04 23:28:03 +02:00
Florian Schlichting 8d1a4dba0f testsuite: update for calendar-user-type support 2017-10-04 23:28:03 +02:00
Florian Schlichting 39001794a3 Update caldav_functions.sql for Postgresql 10
From version 10, Postgresql does not allow set-returning functions in
CASE statements. As we're using the functions recursively, we cannot
use LATERAL as suggested in the error message, but we can switch the
condition inside-out with only a limited amount of repetition.
2017-10-04 22:36:29 +02:00
Florian Schlichting 44ff0b3286 update tests for changed etags, unstable REV/UID or sort order, improved property parsing
Changed line wrapping in awl is one major reason for etag changes.

With this commit, all tests in regression-suite, binding and carddav
pass for me, using the configuration outlined in README.regression_tests
2017-09-21 00:39:30 +02:00
Florian Schlichting 7e3a9a476f group memberships for the calendar-proxy-{read,write} pseudo-principal are always empty
Only regular principals can be members in any groups, for
pseudo-principals group membership doesn't make sense. In case somebody
asks, do not return the group memberships of the parent principal but
rather provide an empty answer.
2017-09-19 21:22:58 +02:00
Florian Schlichting a6b286ab98 caldav-proxy 5.2: calendar-proxy-read/write are themselves principal resources
Fixes the CalDAV/calendaruserproxy.xml test.
2017-09-19 21:19:02 +02:00
Florian Schlichting 63c4de9f34 do not advertise ?add_member on a principal
We wouldn't know what to do with that anyway...

Fixes the CalDAV/add-member.xml test.
2017-09-19 21:16:43 +02:00
Florian Schlichting 74828c8c60 Update testsuite for changes related to #112 (4cf6628) 2017-04-07 14:17:00 +02:00
Florian Schlichting dc9edfcfda Update regression suite for gratuitous whitespace changes 2017-01-17 23:40:54 +01:00
Florian Schlichting f8ee381840 Add a test case for /user/calendar-proxy-read/ with return=minimal
and update 0525-iCal-PROPFIND now that we return a result for proxy
group-member-set
2017-01-04 22:32:58 +01:00
Florian Schlichting e565cc0a5e Apache 2.4.24 doesn't send Content-Length: 0 headers for 204 No Content responses
...and is more strict parsing HTTP. Let tests pass on both old and new
versions.
2017-01-01 16:28:37 +01:00
Florian Schlichting b1ae485973 document the setup that will get regression-suite to pass
The other suites don't pass for me at the moment.
2016-12-01 20:29:28 +01:00
Andrew McMillan 1ab66a70b5 Some database changes for server-side attendee handling. 2016-06-22 23:44:10 +01:00
Andrew McMillan 9997f3a912 Enforce ordering on sample data for more consistent test results. 2016-06-22 23:12:23 +01:00
Andrew McMillan b73ad6ae19 Regression result changes with calendar-free-busy-set disabled.
The calendar-free-busy-set functionality is old and superseded.
2016-06-22 23:11:40 +01:00
Andrew McMillan 208173043a Update to regression test results for PROPPATCH bugfix. 2016-06-22 23:10:20 +01:00
Andrew McMillan 8bb5e72c7b Updated regression test results from updates to contenttype 2016-06-22 23:08:56 +01:00
Florian Schlichting 0b1ab8dc65 document testing setup 2014-10-02 02:01:16 +02:00
Andrew McMillan 58bbe1c8c3 Change to read all calendars and then discard inaccessible ones 2013-10-15 23:43:35 +13:00
Andrew McMillan 5290db2657 Changes to VCALENDAR content due to parser / renderer changes. 2013-09-26 16:27:45 +02:00
Andrew McMillan 02ca39d2fe Changed etags. 2013-09-26 16:27:17 +02:00
Andrew McMillan 7f83ffc31a Changes to sending of DAV header. 2013-09-26 16:26:46 +02:00
Andrew McMillan 8b52d69e1e Force consistent result ordering. 2013-09-24 12:15:02 +02:00
Andrew McMillan 7346c35c0c Results changed for new VXXXXX parser. 2013-09-24 12:14:42 +02:00
Andrew McMillan 1a86165883 Changes to default supported-component-set. 2013-09-02 14:22:12 +12:00
Andrew McMillan bc1ef8b26c ETag/path changes due to regression.host changes. 2013-09-02 14:18:11 +12:00
Andrew McMillan 48d22782f7 Correct regression host name. 2013-07-15 13:11:08 +12:00
Andrew McMillan 86b717a390 Testing for dead property XML which is a set of prop. 2012-07-13 20:24:21 +12:00
Andrew McMillan 0fb4cdd6df URL fixes in regression tests. 2012-07-09 01:17:49 +12:00
Andrew McMillan e3acbd6d14 Updated test results. 2012-07-09 01:17:33 +12:00
Andrew McMillan 969c1ed0c4 Fixed regression test results. 2012-07-09 01:16:41 +12:00
Andrew McMillan c1bdf04848 Test/result for calendar-query report with no properties specified. 2012-07-08 11:58:38 +12:00
Andrew McMillan 1f5d8ddcac Updated & new regression tests for various XML processing changes. 2012-05-20 21:50:30 +12:00