summaryrefslogtreecommitdiffstats
path: root/tests/lib/Repair
Commit message (Collapse)AuthorAgeFilesLines
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-252-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-279-15/+15
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-224-4/+4
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove one time repair steps that have already run when updating to 17Morris Jobke2019-07-083-544/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Implement guest avatar endpointMichael Weimann2019-02-071-1/+1
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Log and continue on Dav reader failureJohn Molakvoæ (skjnldsv)2018-12-051-2/+9
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use the defined func()->count() instead of manual countingJoas Schilling2018-11-082-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Clear avatar cache with frontend repairJohn Molakvoæ (skjnldsv)2018-11-081-0/+82
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge branch 'addressbook-uid-check-migration' of ↵John Molakvoæ (skjnldsv)2018-11-011-1/+1
|\ | | | | | | | | | | https://github.com/nextcloud/server into addressbook-uid-check-migration Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * TestsJohn Molakvoæ (skjnldsv)2018-11-011-0/+121
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Fix phpunitJohn Molakvoæ (skjnldsv)2018-11-011-20/+20
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | TestsJohn Molakvoæ (skjnldsv)2018-10-301-0/+121
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Move depsCache clearing to SCSSCacher/JSCombinerJulius Härtl2018-02-031-16/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add tests and class mappingJulius Härtl2018-02-031-0/+94
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove old repair steps that aren't executed anymoreMorris Jobke2018-01-224-701/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* check if the user still exists before we try to cleanup the previewsBjoern Schiessle2017-11-141-1/+10
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Use ::class in test mocksMorris Jobke2017-10-243-3/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* dont run invalid path repair step when upgrading from 11.0.5.2 and laterRobin Appelman2017-10-031-0/+30
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix RepairMimeTypeTestRoeland Jago Douma2017-08-091-4/+10
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix last failures with oracleJoas Schilling2017-08-021-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also repair storage id's when repairing invalid entriesRobin Appelman2017-07-211-0/+34
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chunk getting invalid paths and reuse queriesRobin Appelman2017-07-131-0/+38
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* adjust to moved repair stepRobin Appelman2017-06-291-2/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add repair step for invalid pathsRobin Appelman2017-06-211-0/+111
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add tests for repairstepLukas Reschke2017-04-261-0/+144
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add test code for new image mime typesStefan Weil2017-04-251-0/+21
| | | | Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Adjust tests as wellMorris Jobke2017-03-211-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* [CI] Can we get some faster phpunit execution? (#27113)Thomas Müller2017-03-201-4/+9
| | | | | | | | * Don't backup globals and static attributes * Unset global variable to remove impact on followup tests Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Make the test usefulJoas Schilling2017-03-031-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Execute UpdateLanguageCode only onceMorris Jobke2017-03-021-1/+25
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix table name and add a test for more than 1 entriesJoas Schilling2017-03-021-20/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Change language code for languages with only one translationMorris Jobke2017-03-011-0/+147
| | | | | | | | | | | | * then the language is not that specific and get also matched for fi * fallback from fi_FI to fi is supported - the other way around not * contains repair script * contains tests for repair script * fixes #869 Order results to make postgres happy Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* cleanup old and not needed repair steps to speed up the updateMorris Jobke2017-02-2211-1652/+19
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* remote now unneeded AvatarPermissions repair stepRobin Appelman2017-01-261-189/+0
| | | | | | Avatars are now stored in appdata Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add repair step to fix file share permissionsVincent Petry2017-01-051-0/+67
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Remove obsolete RepairLegacyStorages repair stepVincent Petry2016-12-191-321/+0
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add a unit testJoas Schilling2016-12-131-0/+132
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add test if repair step is already doneRoeland Jago Douma2016-11-191-1/+43
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Adds background job to cleanup all previews.Roeland Jago Douma2016-11-192-0/+329
| | | | | | | | | | * A repair step that inserts a background job for each user * Each background job will delete for 15 seconds if it takes longer we reschedule. This is done so instances that don't use the system cron won't time out. * Added tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* introduce callForSeenUsers and countSeenUsers (#26361)Jörn Friedrich Dreyer2016-10-281-0/+3
| | | | | | | | | | * introduce callForSeenUsers and countSeenUsers * add tests * oracle should support not null on clob * since 9.2.0
* Fix test of repair stepJoas Schilling2016-10-191-6/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix getMock RepairUnmergedSharesTestRoeland Jago Douma2016-09-131-4/+5
|
* Fix getMock RepairRoeland Jago Douma2016-09-071-1/+2
|
* Merge pull request #891 from nextcloud/us_25810Morris Jobke2016-08-301-43/+168
|\ | | | | [OC] Fix unmerged shares repair targetdecision
| * Improve regexp to detect duplicate folders when repairing unmerged sharesVincent Petry2016-08-171-34/+68
| |
| * Fix unmerged shares repair with mixed group and direct sharesVincent Petry2016-08-171-1/+44
| | | | | | | | | | | | | | Whenever a group share is created after a direct share, the stime order needs to be properly considered in the repair routine, considering that the direct user share is appended to the $subShares array and breaking its order.
| * Improve file_target finding logic when repairing unmerged sharesVincent Petry2016-08-171-9/+57
| | | | | | | | | | | | | | Pick the most recent subshare that has no parenthesis from duplication which should match whichever name the user picked last. If all subshares have duplicate parenthesis names, use the least recent group share's target instead.
* | always return numeric storage id as int, also check type equality in test ↵Jörn Friedrich Dreyer2016-08-291-29/+15
|/ | | | asserts