summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix dav application tests and code for PHP 8.1Côme Chilliet2021-11-231-0/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #28997 from nextcloud/fix/set-attendee-as-recipientJohn Molakvoæ2021-10-221-24/+73
|\
| * Update attendence for external usersDaniel Kesselberg2021-10-081-24/+73
| | | | | | | | | | | | | | For local users it's possible to select their calendar via the principal url and first update their own attendance status. External users have no calendar event hence the recipient is the organizer. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Clean BulkUpload pluginLouis Chemineau2021-10-168-1361/+313
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | Add benchmark testsLouis Chemineau2021-10-157-231/+174
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | Add BulkUpload DAV pluginLouis Chemineau2021-10-157-0/+1578
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | Fix default language detection for calendar notificationsChristoph Wurst2021-10-131-2/+2
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #28716 from nextcloud/add-orphan-subscriptions-repair-taskszaimen2021-09-131-0/+169
|\ | | | | Add repair job to delete calendar subscriptions that were orphaned when deleting an user
| * Add repair job to delete calendar subscriptions that were orphaned whenThomas Citharel2021-09-041-0/+169
| | | | | | | | | | | | | | | | deleteding an user Follow-up to https://github.com/nextcloud/server/pull/28419 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | use specific email getter where necessaryArthur Schiwon2021-09-091-17/+17
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #28419 from ↵Christoph Wurst2021-08-311-22/+27
|\ | | | | | | | | nextcloud/bug/28419/delete-calendar-subscriptions-when-deleting-user Delete calendar subscriptions as well when deleting user
| * Delete calendar subscriptions as well when deleting userThomas Citharel2021-08-131-22/+27
| | | | | | | | | | | | Closes #28418 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Improve PrincipalTest test fileThomas Citharel2021-08-161-56/+58
| | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Expose user language through DAVThomas Citharel2021-08-163-1/+32
|/ | | | | | | | | Introduces the '{http://nextcloud.com/ns}language' prop that gives the user's language Closes #28449 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Make sure that the dav propfind plugins always use the proper user idJulius Härtl2021-07-222-17/+16
| | | | | | | | For old android versions it could happen that the requests are performed with a login name instead of the actual user id, so before this change the property methods used the wrong value for fetching their information Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Introduce ISecureRandom::CHAR_ALPHANUMERICJ0WI2021-07-081-1/+1
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Merge pull request #17148 from ↵Joas Schilling2021-07-021-6/+38
|\ | | | | | | | | nextcloud/always-provide-color-to-default-personal-calendar Always provide theme color for default personal calendar
| * Make default calendar only contain VEVENTSThomas Citharel2021-06-251-2/+4
| | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
| * Always provide theme color for default personal calendarThomas Citharel2021-06-251-6/+36
| | | | | | | | | | | | Before this calendar-color wasn't defined for default calendar Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Merge pull request #27488 from msrn/win10cal-useragentJulius Härtl2021-06-291-2/+2
|\ \ | |/ |/| Add regex to match Windows 10 calendar user-agent
| * Add regex to match Windows 10 calendar user-agentMikael Saarinen2021-06-231-2/+2
| | | | | | | | | | | | | | | | * Match first part of the Windows 10 calendar user-agent * Exposes subscribed calendars for Windows 10 calendar * Update unit test Signed-off-by: Mikael Saarinen <mikaels@iki.fi>
* | Reference correct private variableLukas Reschke2021-06-221-1/+1
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Throttle on public DAV endpointLukas Reschke2021-06-221-1/+8
|/ | | | | | We should throttle whenever an invalid request is sent to the public WebDAV endpoint. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Merge pull request #26421 from mattian/enh/25771/occ-delete-calendarChristoph Wurst2021-06-141-0/+250
|\ | | | | OCC command to delete calendars
| * occ: new command dav:delete-calendarMattia Narducci2021-06-131-0/+250
| | | | | | | | | | | | Add occ command 'dav:delete-calendar' to delete a user's calendar. Signed-off-by: Mattia Narducci <mattianarducci1@gmail.com>
* | Merge pull request #27374 from nextcloud/bugfix/noid/adjust-unit-testsMorris Jobke2021-06-072-88/+36
|\ \ | | | | | | Bugfix/noid/adjust unit tests
| * | Code style fixesMorris Jobke2021-06-072-10/+0
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | Fix dispatcher handling in CalDavBackendTestJoas Schilling2021-06-042-82/+40
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #27008 from francoisfreitag/no-jq-app-calendarJohn Molakvoæ2021-06-051-1/+21
|\ \ \
| * | | Port dav calendar settings page to Vue.jsFrançois Freitag2021-06-051-1/+21
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Drop reliance on deprecated global jQuery object. - Allow testing user interactions. - Use newer technology stack. --- Test user interactions with the groupware dav settings Add infrastructure to test Vue components: - Use recommended libraries: - https://vuejs.org/v2/guide/testing.html#Recommendations - Use jest-dom for robust assertions on the DOM state - Use user-event to be more representative of user actions - Code is transpiled by Jest, with the help of vue-jest. Ignore test files for no-unpublished-import. Prevent ESLint from flagging: ``` /home/runner/work/server/server/apps/dav/src/views/CalDavSettings.spec.js Error: 1:24 error "@testing-library/vue" is not published node/no-unpublished-import Error: 2:23 error "@testing-library/user-event" is not published node/no-unpublished-import ``` Signed-off-by: François Freitag <mail@franek.fr>
* / / Update php licensesJohn Molakvoæ (skjnldsv)2021-06-04136-218/+105
|/ / | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Merge pull request #27312 from francoisfreitag/tests-atLukas Reschke2021-06-013-16/+14
|\ \ | | | | | | Rewrite birthday calendar tests without $this->at()
| * | Rewrite birthday calendar tests without $this->at()François Freitag2021-05-313-16/+14
| |/ | | | | | | | | | | | | | | | | | | | | | | Removes warnings: ``` The at() matcher has been deprecated. It will be removed in PHPUnit 10. Please refactor your test to not rely on the order in which methods are invoked. ``` Signed-off-by: François Freitag <mail@franek.fr>
* | Merge pull request #25658 from ↵Christoph Wurst2021-06-011-24/+49
|\ \ | |/ |/| | | | | nextcloud/dav-respect-disallow-sharing-with-groups Dav respect disallow sharing with groups
| * Make dav respect disallowing sharing with groupsThomas Citharel2021-05-261-24/+49
| | | | | | | | | | | | Closes #25390 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Add a trashbin for calendars and calendar objectsChristoph Wurst2021-05-315-12/+31
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix CS checkRoeland Jago Douma2021-05-121-2/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* remove private AccountManager from SyncServiceArthur Schiwon2021-05-111-45/+13
| | | | | | and fix test Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* dav: do not use private AccountManagerArthur Schiwon2021-05-081-44/+45
| | | | | | - also updates data structure in test Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove the untyped calendar update eventChristoph Wurst2021-05-071-3/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove the untyped calendar create eventChristoph Wurst2021-05-072-6/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Clean up reminder actions and call methods directlyChristoph Wurst2021-05-071-12/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove the \OCA\DAV\CalDAV\CalDavBackend::createCalendarObject eventChristoph Wurst2021-05-072-18/+32
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove the \OCA\DAV\CalDAV\CalDavBackend::updateCalendarObject eventChristoph Wurst2021-05-071-3/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove the \OCA\DAV\CalDAV\CalDavBackend::deleteCalendarObject eventChristoph Wurst2021-05-071-12/+20
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix testValdnet2021-05-041-1/+1
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* fix creating vcards with multiple string valuesArthur Schiwon2021-04-301-2/+12
| | | | | | | | Internally it is valid to provide multiple values for a property as plain string. An exampe is given in the PhpDoc of AddressBookImpl::search(). Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Exclusively use the typed calendar deletion events for DAVChristoph Wurst2021-04-292-13/+20
| | | | | | | We had both in places, but the old one isn't used anywhere outside this app, so it's time to migrate the code. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Only set copy etag if the destination source can be foundChristoph Wurst2021-04-231-0/+14
| | | | | | | | | | The etag is only set for files, but it's also possible that in edge cases the copy destination node can't be found. In that case we don't need to set any etag. Required for #26083 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix DAV unit testsJoas Schilling2021-04-203-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAccept Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static 7) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAcceptSequence Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static 8) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAcceptRecurrenceId Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static 9) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAcceptTokenNotFound Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static 10) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAcceptExpiredToken Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static 11) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testDecline Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static 12) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testProcessMoreOptionsResult Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static 13) OCA\DAV\Tests\unit\CalDAV\CalendarTest::testConfidentialClassification with data set #0 (3, false) No method rule is set 14) OCA\DAV\Tests\unit\DAV\Migration\RefreshWebcalJobRegistrarTest::testRun Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static Signed-off-by: Joas Schilling <coding@schilljs.com>