aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* feat(CI): Allow apps to test with PHPUnit10Joas Schilling2023-09-211-13/+34
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #40499 from nextcloud/known-mtime-wrapperRobin Appelman2023-09-211-0/+70
|\ | | | | add wrapper for external storage to ensure we don't get an mtime that is lower than we know it is
| * apply known mtime wrapper for external storagesRobin Appelman2023-09-191-1/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * add wrapper to ensure we don't get an mtime that is lower than we know it isRobin Appelman2023-09-191-0/+71
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | test: add test for cache mount providerDaniel Kesselberg2023-09-201-0/+108
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(systemtags): fix capabilities and sidebar + tag visibilityJohn Molakvoæ (skjnldsv)2023-09-181-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Remove last calls to deprecated at matcher in tests/CoreCôme Chilliet2023-09-189-106/+92
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #40419 from nextcloud/fix/remove-at-matcher-in-installer-testCôme Chilliet2023-09-181-13/+20
|\ | | | | Remove deprecated at matcher in tests/lib/InstallerTest.php
| * Remove deprecated at matcher in tests/lib/InstallerTest.phpCôme Chilliet2023-09-141-13/+20
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | refactor(f2v): Migrate unread comments action to the new FileAction APILucas Azevedo2023-09-161-7/+0
|/ | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* fix: Pass parent to NonExistingFile instancesJulius Härtl2023-09-131-2/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* test: add tests for dns pin middlewareDaniel Kesselberg2023-09-121-0/+563
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #32912 from nextcloud/group-backend-batch-methodCôme Chilliet2023-09-111-3/+6
|\ | | | | Add batch methods in user backends
| * Add batch methods in user backendsCarl Schwan2023-09-051-3/+6
| | | | | | | | | | | | This allows for faster group search with significantly less DB traffic Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #39226 from shdehnavi/null_coalescing_conversion_testsJulius Härtl2023-09-092-2/+2
|\ \
| * | Convert isset ternary to null coalescing operatorHamid Dehnavi2023-08-172-2/+2
| | | | | | | | | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* | | Merge pull request #40216 from ↵Côme Chilliet2023-09-071-0/+5
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/print-log-message-when-version-could-not-be-got-from-updater-server Print log message when version could not be got from updater server
| * | | Print log message when version could not be got from updater serverDaniel Calviño Sánchez2023-09-061-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This could help to diagnose why the updater server could not be reached, as well as other subtler issues like requests taking too long if the updater server was tried to be connected to as a "side effect" (for example, when the "updatenotification" app boots). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | | Create right table viewjulia.kirschenheuter2023-09-051-4/+4
| | | | | | | | | | | | | | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* | | | Fix ContactsManagerTest adressbook mocks having a null keyCôme Chilliet2023-09-051-0/+27
| |_|/ |/| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Merge pull request #39863 from nextcloud/sharing-mask-wrapperRobin Appelman2023-09-042-12/+28
|\ \ \ | | | | | | | | move share permission logic to storage wrapper
| * | | cleanup di for share permissions wrapperRobin Appelman2023-08-162-12/+28
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #39707 from ↵Simon L2023-09-041-0/+11
|\ \ \ \ | |_|/ / |/| | | | | | | nextcloud/bugfix/39706/local-ext-storage-unavailable-mode
| * | | Allow ext storage Local to go unavailableVincent Petry2023-08-291-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever an external storage of type Local points at a non-existing directory, process this as a StorageNotAvailable instead of returning 404. This makes desktop clients ignore the folder instead of deleting it when it becomes unavailable. The code change was limited to external storages to avoid issues during setup and with the default home storage. Signed-off-by: Vincent Petry <pvince81@yahoo.fr>
* | | | Fix sharing creation insert and getJohn Molakvoæ (skjnldsv)2023-09-022-18/+17
| | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | | update testsRobin Appelman2023-08-312-46/+37
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | sharebymail: remove ILogger and upgrade to PHP 8 syntaxBenjamin Gaussorgues2023-08-301-5/+5
| | | | | | | | | | | | | | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | | | feat: add switch to disable dns pinningDaniel Kesselberg2023-08-291-1/+52
|/ / / | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | Merge pull request #40026 from lhsazevedo/auth-token-commandsJoas Schilling2023-08-294-6/+214
|\ \ \ | | | | | | | | feat: Add auth token list and delete commands
| * \ \ Merge branch 'master' into auth-token-commandsLucas Azevedo2023-08-283-140/+77
| |\ \ \
| * | | | Add tests for occ user:auth-tokens:deleteLucas Azevedo2023-08-254-6/+214
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* | | | | techdebt(DI): Use public IThrottler interface which exists since Nextcloud 25Joas Schilling2023-08-285-16/+17
| |/ / / |/| | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Fix tests, add test for the new featureCôme Chilliet2023-08-281-13/+77
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | chore: Remove unused FilePickerContext from behat testsFerdinand Thiessen2023-08-262-127/+0
|/ / / | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | fix: Make bypass function public APIJoas Schilling2023-08-212-5/+5
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | feat: Expose if the own IP is allowed to bypass bruteforce protectionJoas Schilling2023-08-211-4/+11
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | feat(security): Add a bruteforce protection backend base on memcacheJoas Schilling2023-08-212-23/+164
| | | | | | | | | | | | | | | | | | Similar to the ratelimit backend Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Download and enable allJérôme Herbinet2023-08-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com> Download and enable all Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com> npm run build Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
* | | only determine quota_include_external_storage once for quota wrapperRobin Appelman2023-08-182-11/+23
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | chore: remove outdated acceptance testsJohn Molakvoæ2023-08-174-1130/+0
| | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | | fix(tests): preview phpunitJohn Molakvoæ2023-08-171-2/+2
| | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | | feat(f2v): migrate FilesJohn Molakvoæ2023-08-171-1/+1
| | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | | tests: Add test for CacheEntry gettersFerdinand Thiessen2023-08-161-0/+25
| |/ |/| | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | Fix various deprecation warnings in tests on PHP 8.3Côme Chilliet2023-08-145-0/+20
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix setting static property in tests on PHP 8.3Côme Chilliet2023-08-142-3/+7
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #38082 from nextcloud/allow-wasm-unsafe-eval-in-cspJoas Schilling2023-08-112-0/+14
|\ | | | | Allow "wasm-unsafe-eval" in CSP
| * Allow "wasm-unsafe-eval" in CSPDaniel Calviño Sánchez2023-08-102-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a page has a Content Security Policy header and the `script-src` (or `default-src`) directive does not contain neither `wasm-unsafe-eval` nor `unsafe-eval` loading and executing WebAssembly is blocked in the page (although it is still possible to load and execute WebAssembly in a worker thread). Although the Nextcloud classes to manage the CSP already supported allowing `unsafe-eval` this affects not only WebAssembly, but also the `eval` operation in JavaScript. To make possible to allow WebAssembly execution without allowing JavaScript `eval` this commit adds support for allowing `wasm-unsafe-eval`. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | test: remove broken steps from files acceptance testDaniel Kesselberg2023-08-091-4/+8
|/ | | | | | | | | | | | The acceptance tests using the recent view fail since the vue migration. `And I open the details view for "welcome.txt"` Is looking for a row in the filelist with a span having the class nametext, matching the file name "welcome.txt" and button inside having the class action-menu. The markup for the files list looks very different after the vue migration and therefor the test is failing. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge branch 'master' into fix/llm-migration-not-executedJulien Veyssier2023-08-079-320/+131
|\
| * Merge pull request #39705 from ↵Joas Schilling2023-08-042-6/+7
| |\ | | | | | | | | | | | | nextcloud/fix/noid/adjust-integrity-test-for-updated-mime-mappings fix: adjust test for font icon