summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-082-5/+11
| | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* Revert "fix(performance): Do not set up filesystem on every call"Joas Schilling2023-02-212-13/+1
|
* tests: Fix test isolation on object storageJulius Härtl2023-02-172-1/+13
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Skip buggy tests for 32bits CICôme Chilliet2023-02-071-4/+15
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Pluggable share providerLouis Chemineau2023-02-021-1/+24
| | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Louis Chemineau <louis@chmn.me>
* add test for shared mount conflict resolutionRobin Appelman2023-01-092-0/+119
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #35213 from PLUTEX/32611-ocs-api-share-permissionsJulius Härtl2022-12-222-6/+5
|\ | | | | Honor permissions of new link share via OCS API
| * Honor permissions of new link share via OCS APIJan-Philipp Litza2022-12-062-6/+5
| | | | | | | | | | | | | | | | | | | | | | The API currently overrides the supplied permissions with "read only" when a file is shared via link. It allows to update the permissions later, however. This keeps the default to "read only" but honors the permissions supplied by API call if any. Signed-off-by: Jan-Philipp Litza <jpl@plutex.de>
* | Adapt tests to new job constructorsCôme Chilliet2022-12-051-2/+2
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix errors from PHP 8.2 testingCôme Chilliet2022-11-141-3/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* More fixesCarl Schwan2022-10-181-8/+18
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Small progress with fixing unit testsCarl Schwan2022-10-111-167/+82
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #33941 from nextcloud/fix/public-sharingCarl Schwan2022-09-151-3/+3
|\ | | | | Only normalize data in public shares and not crud
| * Only normalize data in public shares and not crudCarl Schwan2022-09-081-3/+3
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix typos in apps/ subdirectoryluz paz2022-09-052-2/+2
|/ | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Fix jsunit testsJulius Härtl2022-09-011-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* adjusts tests for CloudIdManagerRobin Appelman2022-08-312-5/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #33430 from nextcloud/fix/remove-broken-resetstorageVincent Petry2022-08-251-13/+0
|\ | | | | Remove broken function resetStorage from test cases
| * Remove broken function resetStorage from test casesCôme Chilliet2022-08-021-13/+0
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Revert "Revert "Remove inefficient fed share scanner""Carl Schwan2022-08-031-12/+0
|/ | | | | | This reverts commit 6667007bf235b90a7dd105c881cf5802b2a3f83e. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Multiple fixesCarl Schwan2022-07-312-67/+167
| | | | | | | | | | | - Fix tests - Use non deprecated event stuff - Add a bit of type hinting to the new stuff - More safe handling of instanceOfStorage (share might not be the first wrapper) - Fix resharing Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix share attribute related tests + code styleVincent Petry2022-07-284-24/+47
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add share attributes + prevent download permissionVincent Petry2022-07-284-38/+353
| | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Remove legacy #dir element in files listVincent Petry2022-07-271-1/+4
| | | | | | | | | | Removed legacy "#dir" input element in the DOM. Apps should use OCA.Files.App.currentFileList or OCA.Sharing.PublicApp.fileList and call getCurrentDirectory() to retrieve the current directory and changeDirectory() to change it. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #33361 from nextcloud/techdebt/noid/further-cleanupVincent Petry2022-07-261-0/+1
|\ | | | | Further markup cleanup
| * Add missing closing spans and avoid empty hrefVincent Petry2022-07-261-0/+1
| | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* | Skip testMovedIntoShareChangeOwnerLouis Chemineau2022-07-261-0/+2
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | Test moving share in and out of another shareLouis Chemineau2022-07-261-0/+117
|/ | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Replace files app ids to classesVincent Petry2022-07-263-8/+8
| | | | | | | | | | | Replaced ids to classes for the following: - #filestable -> .files-filestable - #fileList -> .files-fileList - #controls -> .files-controls - #emptycontent -> .emptyfilelist.emptycontent Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #32741 from nextcloud/Valdnet-patch-2Joas Schilling2022-06-102-6/+6
|\ | | | | l10n: Delete apostrophe
| * Fix unit testsJoas Schilling2022-06-072-6/+6
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Revert "Remove inefficient fed share scanner"Carl Schwan2022-06-101-0/+12
|/ | | | | | This reverts commit ce319143142e2ee998ef4794b04ad684c4ffa911. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Remove at() matcher in files_sharing testsCôme Chilliet2022-05-244-70/+83
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #32053 from nextcloud/cache-verify-share-mountpointblizzz2022-04-221-1/+6
|\ | | | | cache the verification of the share mountpoint
| * cache the verification of the share mountpointRobin Appelman2022-04-211-1/+6
| | | | | | | | | | | | after the initial verification this can only really be invalidated by a system mount (external/group/etc) being created at the share target since any normal file/folder creation will already conflict with the share Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Cache display nameCarl Schwan2022-04-221-0/+2
|/ | | | | | | | This should saves some query in the share backend when displaying the owner and it's not important if the display name is 10 minutes outdated as it is very rare that this gets changed. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Adds a "Request password" button to the public share authentication page for ↵Cyrille Bollu2022-04-112-0/+6
| | | | | | | | | | | | | | | | | | shares of type TYPE_EMAIL, when the "video verification" checkbox isn't checked. Users accessing non-anonymous public shares (TYPE_EMAIL shares) can now request a temporary password themselves. - Creates a migration step for the files_sharing app to add the 'password_expiration_time' attribute to the oc_shares table. - Makes share temporary passwords' expiration time configurable via a system value. - Adds a system config value to allow permanent share passwords -Fixes a typo in a comment in apps/files_sharing/src/components/SharingEntryLink.vue See https://github.com/nextcloud/server/issues/31005 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
* Merge pull request #31194 from ↵Vincent Petry2022-04-061-0/+12
|\ | | | | | | | | nextcloud/feat/allow-to-exclude-groups-from-password-enforcement Allow to disable password policy enforcement for selected groups
| * Allow to disable password policy enforcement for selected groupsCarl Schwan2022-04-051-0/+12
| | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Co-authored-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* | Merge pull request #31684 from nextcloud/user-share-permissions-mergeSimon L2022-04-051-0/+44
|\ \ | | | | | | take permissions from multiple paths into account for share permissions
| * | take permissions from multiple paths into account for share permissionsRobin Appelman2022-03-311-0/+44
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | ensure user folder is created in ApiTestRobin Appelman2022-04-041-0/+3
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #31240 from nextcloud/Valdnet-patch-3Louis2022-03-311-1/+1
|\ \ \ | | | | | | | | l10n: Add a dot
| * | | Fix testValdnet2022-03-311-1/+1
| | | | | | | | | | | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* | | | Fix ILogger instances in application tests for core parametersCôme Chilliet2022-03-241-2/+2
| |/ / |/| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Add test to spelling unificationLouis Chemineau2022-03-211-1/+1
| |/ |/| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | simplify setup of circular SetupManager<->ManagerRobin Appelman2022-03-041-6/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | move logic to decide what to setup to setupmanagerRobin Appelman2022-03-041-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | adjust tests to new fs setupRobin Appelman2022-03-041-7/+15
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | make share cache test resilient against skeleton files not being thereRobin Appelman2022-02-251-5/+3
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>