summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
Commit message (Collapse)AuthorAgeFilesLines
* Handle OC-Total-Length in new chunkingThomas Müller2017-12-153-57/+171
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* fix dav unit testsBjoern Schiessle2017-12-121-3/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix unit tests for CalendarManagerMorris Jobke2017-12-121-1/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #6884 from ↵Morris Jobke2017-12-129-25/+664
|\ | | | | | | | | nextcloud/feature/3003/opt_out_of_birthday_calendar Opt out of birthday calendar
| * generate birthday calendars in a background job after admin enabled themGeorg Ehrke2017-11-112-1/+152
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * create a user's birthday calendar right after they requested itGeorg Ehrke2017-11-111-2/+17
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * respect admin / user choice about birthday calendars in corresponding hooksGeorg Ehrke2017-11-111-5/+110
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * disallow users to create calendars with reserved namesGeorg Ehrke2017-11-111-0/+81
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * add CalDAV interface that allows users to re-enable their birthday calendarGeorg Ehrke2017-11-111-0/+171
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * remember when a user deleted their contact birthdays calendarGeorg Ehrke2017-11-104-20/+61
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * Add admin checkbox to disable birthday calendarsGeorg Ehrke2017-11-091-0/+75
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Merge pull request #6590 from nextcloud/dav-create-activities-for-publishingMorris Jobke2017-12-111-0/+19
|\ \ | | | | | | Create activities for (un)publishing calendar events
| * | Fix testsRoeland Jago Douma2017-12-111-0/+2
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Create activities for (un)publishing calendar eventsThomas Citharel2017-12-111-0/+17
| | | | | | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | Principal search: Take sharing settings into accountGeorg Ehrke2017-12-111-13/+175
|/ / | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Merge pull request #7313 from ↵Morris Jobke2017-12-111-2/+136
|\ \ | | | | | | | | | | | | nextcloud/ensure-that-x-oc-mtime-header-is-an-integer-with-chunked-uploads Ensure that X-OC-MTime header is an integer with chunked uploads
| * | Reject X-OC-MTime header if given as a string with hexadecimal notationDaniel Calviño Sánchez2017-11-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In PHP 7.X hexadecimal notation support was removed from "is_numeric", so "sanitizeMtime" directly rejected those values; in PHP 5.X, on the other hand, "sanitizeMtime" returned 0 when a string with hexadecimal notation was given (as it was the behaviour of "intval"). To provide a consistent behaviour between PHP versions, and given that it does not make much sense to send X-OC-MTime in hexadecimal notation, now X-OC-MTime is always rejected if given as a string with hexadecimal notation. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Don't use runInSeparateProcessThomas Müller2017-11-271-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Directly calling "header" in the PHPUnit process causes the "Cannot modify header information - headers already sent by" error to be thrown. Instead of running the test in a separate process, which is slower, this commit wraps the call to "header" in a method that can be mocked in the tests. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Add tests for X-OC-MTime header handlingDaniel Calviño Sánchez2017-11-271-0/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is based on the commits from pull request 28066 (included in 018d45cad97e0) from ownCloud by Artur Neumann and Phil Davis. Unit tests are currently run only on systems that support negative mtimes, so no special handling of negative values was included in the tests to keep the test code more manageable. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Make possible to provide a specific HTTP request object to FileDaniel Calviño Sánchez2017-11-271-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will be used in a following commit to test how the X-OC-MTime header is handled. This commit is based on the "make File::put() more testable" commit (included in 018d45cad97e0) from ownCloud by Artur Neumann. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Fix testsRoeland Jago Douma2017-12-041-0/+2
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | catch errors when parsing calendar data for calendar query requestsGeorg Ehrke2017-11-272-1/+10
|/ / | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Merge pull request #7047 from ↵Björn Schießle2017-11-201-9/+11
|\ \ | | | | | | | | | | | | nextcloud/add-support-for-files-with-no-permissions Add support for files with no permissions
| * | Return whether the file is readable or not in the DAV permissionsDaniel Calviño Sánchez2017-11-021-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Until now it was safe to assume that every file was readable by its owner, so there was no need to return whether the file was readable or not. However, with the introduction of end to end encryption that is no longer the case, and it is now necessary to explicitly provide that information. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Merge pull request #6840 from nextcloud/feature/5282/calendar_apiMorris Jobke2017-11-163-0/+316
|\ \ \ | | | | | | | | Calendar API for apps
| * | | integrate Dav app with Calendar APIGeorg Ehrke2017-11-093-0/+316
| | |/ | |/| | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* / | show name of organizer in from name of invitation emailGeorg Ehrke2017-11-141-3/+16
|/ / | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Merge pull request #7042 from ↵Lukas Reschke2017-11-072-8/+101
|\ \ | | | | | | | | | | | | nextcloud/bugfix/noid/ensure_unique_uid_for_calendar_objects ensure uid for calendar objects is unique
| * | ensure uid for calendar objects is uniqueGeorg Ehrke2017-11-062-8/+101
| |/ | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Merge pull request #7075 from nextcloud/remove-unused-variablesRoeland Jago Douma2017-11-072-2/+2
|\ \ | | | | | | Remove unused variables
| * | Remove unused variablesMorris Jobke2017-11-062-2/+2
| |/ | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Change @georgehrke's emailMorris Jobke2017-11-0616-15/+16
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Update license headersMorris Jobke2017-11-0678-42/+210
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | fancify invitation emailsGeorg Ehrke2017-11-031-17/+79
|/ | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Merge pull request #6849 from ↵blizzz2017-10-312-3/+41
|\ | | | | | | | | nextcloud/fix-missing-translation-of-personal-calendar-in-activity Fix missing translation of "Personal" calendar in activities
| * Fix missing translation of "Personal" calendar in activitiesJoas Schilling2017-10-162-3/+41
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #6903 from ↵Joas Schilling2017-10-311-0/+180
|\ \ | | | | | | | | | | | | nextcloud/feature/679/remove_valarms_from_read_only_shared_calendars remove reminders from read-only shared calendars
| * | remove reminders from read-only shared calendarsGeorg Ehrke2017-10-221-0/+180
| | | | | | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | | Fix another warningMorris Jobke2017-10-261-4/+5
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Use ::class in test mocks of dav appMorris Jobke2017-10-2628-85/+126
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Use ::class in test mocksMorris Jobke2017-10-2440-248/+338
|/ / | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #6811 from nextcloud/feature/noid/disable_caldav_invitationsJoas Schilling2017-10-191-0/+58
|\ \ | | | | | | Opt out of IMip CalDAV Plugin
| * | add admin settings panel for dav appGeorg Ehrke2017-10-161-0/+58
| | | | | | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | | Merge pull request #6835 from nextcloud/dav-plugins-from-apps-onlyLukas Reschke2017-10-192-2/+106
|\ \ \ | |_|/ |/| | Let apps register Sabre plugins or collections (v2)
| * | Let apps register Sabre plugins or collectionsVincent Petry2017-10-142-2/+106
| | | | | | | | | | | | | | | | | | upstream #26761 Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Fix tests with group managerJoas Schilling2017-10-091-1/+1
|/ / | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / Check if the user/group exists for dav sharesJoas Schilling2017-10-054-14/+53
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix quota calculation on new dav upload endpointRoeland Jago Douma2017-09-131-3/+8
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #5304 from ↵Morris Jobke2017-09-061-2/+64
|\ | | | | | | | | nextcloud/bugfix/2855/dont_send_invitations_for_past_events don't send invitation emails for past events
| * Sabre/VObject returns DateTimeImmutable, not a simple DateTimeGeorg Ehrke2017-09-051-5/+9
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>