49 Commits

Author SHA1 Message Date
Andrew Ruthven
7c47658bee Make the curl and SQL requests when we see them
This allows us to have more complex test files where an action is taken, then
we test something, then another action is taken, etc.

Changes to test files are required so that URL is defined after all the
required settings are set.

Changes to the result files are either whitespace changes due to above logic
changes, or printing out a SQL Result header before each result. I figured it
was useful.
2024-04-01 22:57:10 +13:00
Andrew Ruthven
28d9105810 Update database result results in tests. 2024-02-18 01:51:56 +13:00
Andrew Ruthven
1ca8284bdc Add ROOM as a principal type
This hopefully resolves #282.
2024-01-21 19:12:42 +13:00
Andrew Ruthven
15d01c8bed Store DTSTART and DTEND from user in shadow columns
We want to store the calculated dtstart and dtend in the database so we can
use SQL to fetch records. However, we also need what the user sent us so we
can allow prop-filters to be used as well.

So we store what the user sends us in dtstart_orig and dtend_orig and only
use for relevant prop-filter reports.
2023-03-12 20:17:43 +01:00
Andrew Ruthven
6819d6d7d1 Add a primary_key to the addressbook_addresses_* tables
This is part of the fix for #276.
2023-02-15 07:42:34 +00:00
Andrew Ruthven
fc09febad2 Update tests now that we don't inherit the DB from previous directory 2022-12-14 09:52:35 +13:00
Andrew Ruthven
d5cb124184 Report about dumping the database 2022-06-28 23:56:57 +12:00
Andrew Ruthven
fbb6b34508 The knock on effects of making a new event for testing... 2021-09-19 02:33:32 +12:00
Florian Schlichting
57f0bc6e41 add 4 VCARDs from carddavclient AddressbookQueryTest
we will run these tests in user5's addresses
2021-02-05 02:00:42 +08:00
Florian Schlichting
8239519ca3 Normalize "100 Continue" headers
apache2 in bullseye has stopped sending these for some reason, but we
want to be able to test in both newer and older environments
2021-02-03 00:42:58 +08:00
Andrew Ruthven
b684e2468e Update some more results based on current regression tests 2021-01-24 00:27:04 +13:00
Jamie McClymont
cf2f019419 Increase, and make configurable, the limit for rrule expansion 2019-01-28 04:51:37 +00:00
Florian Schlichting
7330eaf995 checkpoint scheduling test results and add them to CI runner (fixes: #170)
I think these remaining changes are due to AWLs vCalendar->GetItip()
creating a "minimal iTIP version" of events, and Jan Mate's "various
scheduling related fixes" in 31af435c and 92f48f38
2018-12-31 03:34:37 +01:00
Florian Schlichting
df13612a68 mask unstable DTSTAMP in scheduling tests
It is reset to the current date in AWL's vCalendar->GetItip()
2018-12-31 03:23:08 +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 e565cc0a5e4af0330fe5a1ab6f2476be7fb10df4 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
Andrew Ruthven
95ad5ec373 Allow database dumps to be restored in test suite.
Primary fix is the search_path to ensure that the collection table
is in the search path so that the copy into dav_binding (and
possibly others) will work.

I also suppressed the warning about plpgsql.
2018-11-12 18:00:30 +13:00
Frank Steinberg
9363a3d19a Improved handling of event modifications:
- only some event attributes modified by the organizer get also modified in attendees' instances of the event,
- revoked invitations mark the according attendee's event appropriately,
- a changed event time resets all attendees' PARTSTAT to NEEDS-ACTION.
2018-01-11 23:08:17 +01:00
Florian Schlichting
2ed5edaf5a Update scheduling test-suite: consistent linebreaks, unnecessary quoting, etags 2017-10-04 23:28:03 +02:00
Florian Schlichting
50dd8a8d73 fix confusing comments 2017-10-04 23:28:03 +02:00
Florian Schlichting
4ef5730bef Restore-Database.result: error setting plpgsql COMMENT and lots more setval in dump 2017-01-01 20:46:36 +01:00
Florian Schlichting
fa2517b983 Update other testsuites for contenttype, PROPPATCH and 204 No Content changes 2017-01-01 20:46:31 +01:00
Andrew McMillan
48d22782f7 Correct regression host name. 2013-07-15 13:11:08 +12:00
Andrew McMillan
483683d3f6 Result ordering and other trivial regression test changes. 2012-05-14 23:26:12 +12:00
Andrew McMillan
7c15051f84 Further fixes to WebDAV synchronization.
This should be fully reliable now and also cleans out all sync
changes more than one week old.  update-database is needed to pull
the new function.
2012-04-17 15:44:09 +12:00
Andrew McMillan
beecb1674d Test result changes for previous commit. 2012-04-16 12:56:08 +12:00
Andrew McMillan
739d024305 Further regression test results changes from the caldav-proxy header. 2012-03-22 14:56:02 +13:00
Andrew McMillan
d226395258 Minor updates to tests. 2011-12-14 22:19:16 +13:00
Andrew McMillan
b4e50d8803 One more sync-action in prior tests. 2011-12-03 14:22:09 +13:00
Andrew McMillan
0c5be26d82 Regression test updates for DELETE scheduling handling. 2011-11-02 18:44:27 +13:00
Andrew McMillan
d8d16c8ee9 Checkpoint the current code for scheduling on DELETE . 2011-11-02 01:30:45 +13:00
Andrew McMillan
8ba55217df More fixes to CalDAV Scheduling
- Handle REPLY from ATTENDEE accepting/declining meeting.
- Handle processing on ORGANIZER further changing meeting.
2011-10-24 18:38:48 +13:00
Andrew McMillan
fbd08e42c6 Fixes to calendar_auto_schedule.
- Update the SCHEDULE-STATUS parameter correctly when writing the event
to the organiser.
- Don't include ETag in PUT response when scheduling actions occur.
- Write scheduling resources to attendee calendars even when this is
an event modification.
2011-10-20 12:19:08 +13:00
Andrew McMillan
5b921b3884 Test for 'deflate' content encoding. 2011-10-07 07:34:49 +02:00
Andrew McMillan
d1f0a1cc76 New & variously improved regression tests. 2011-10-06 11:10:02 +02:00
Andrew McMillan
5f4b40a643 One more fix for timezone database changes. 2011-09-18 17:03:37 +12:00
Andrew McMillan
4e5b824302 Make PUT processing use olson_from_tzstring(). 2011-09-13 13:12:35 +12:00
Andrew McMillan
aa05688e4e Test for IsCollection() before IsBinding() when we are deleting. 2011-09-12 10:52:16 +12:00
Andrew McMillan
4f01fe0a17 Add items to attendee's calendars as well as to their inboxes on PUT. 2011-09-10 00:17:27 +12:00
Andrew McMillan
bdb360f082 Add support for the schedule-default-calendar-URL property. 2011-09-09 22:54:38 +12:00
Andrew McMillan
d78620398c Fix METHOD on scheduling request. 2011-09-08 09:40:47 +12:00
Andrew McMillan
fa48854fbe Changes to the number of rows in the test DB. 2011-09-07 23:54:38 +12:00
Andrew McMillan
13ce4c147a Add support for writing local scheduling requests on PUT.
In the new Scheduling Extensions for CalDAV the server is expected
to construct iCalendar METHOD:REQUEST invitations and put them into
the scheduling inbox for each (local) attendee.  This patch does
that, and hopefully breaks the back of implementing the full
scheduling extensions.
2011-09-07 23:40:28 +12:00
Andrew McMillan
27deec06ac Test results including calendar-auto-schedule header as default. 2011-08-24 20:39:58 +12:00
Andrew McMillan
aaa0908b1a Add new import test with UTF-8 and missing UID.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-04-03 21:35:49 +12:00
Andrew McMillan
2b072fda13 Additional collection during regression testing.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-02-22 15:42:05 +13:00
Andrew McMillan
655e3bfdaf Updated dav_id's due to more events in test database.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 23:26:12 +13:00
Andrew McMillan
90c35ec385 Add another event into our testing.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-01 21:26:27 +13:00
Andrew McMillan
4178ab4254 Add caching of collection reads
Also a special header is added for telling DAViCal to flush the
cache during regression testing etc.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-01 21:25:46 +13:00
Andrew McMillan
7cec81592d More testing stuff. 2010-12-25 16:14:44 +13:00