summaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* Move ExpiredTokenException to the correct namespaceRoeland Jago Douma2018-11-021-2/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* filter null values for UserManager::getByEmailGeorg Ehrke2018-10-221-0/+33
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* make file cache updates more robustBjoern Schiessle2018-08-081-0/+11
| | | | | | only update the encrypted version after the write operation is finished and the stream is closed Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* prevent lock values from going negative with memcache backendRobin Appelman2018-07-101-0/+12
| | | | | | | | This can be caused by the code releasing more locks then it acquires, once the lock value becomes negative it's likely that it will never be able to change into an exclusive lock again. Signed-off-by: Robin Appelman <robin@icewind.nl>
* Make sure the file is readable before attempting to create a previewRoeland Jago Douma2018-05-291-0/+20
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* make sure force language is reflected in html lang attributeGeorg Ehrke2018-05-241-7/+43
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Certain tokens can expireRoeland Jago Douma2018-05-221-0/+75
| | | | | | | | However due to the nature of what we store in the token (encrypted passwords etc). We can't just delete the tokens because that would make the oauth refresh useless. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow the rotation of tokensRoeland Jago Douma2018-05-221-0/+42
| | | | | | This for example will allow rotating the apptoken for oauth Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add tests for special domain nameMorris Jobke2018-05-091-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add tests for domainsMorris Jobke2018-05-091-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move regex to a function and add testsJoas Schilling2018-05-091-0/+52
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #9231 from nextcloud/13-9205Morris Jobke2018-04-182-1/+53
|\ | | | | [stable13] Provide an option to disable HTML emails
| * Provide an option to disable HTML emailsMorris Jobke2018-04-182-1/+53
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #9233 from nextcloud/13-9159Roeland Jago Douma2018-04-181-0/+14
|\ \ | | | | | | [stable13] fix appinfo parsing when a single localized option is provided
| * | fix appinfo parsing when a single localized option is providedRobin Appelman2018-04-181-0/+14
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* / Show EOL warning in the update sectionJoas Schilling2018-04-181-0/+4
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #8779 from nextcloud/backport/8255/show-group-display-namesJohn Molakvoæ2018-04-061-6/+13
|\ | | | | [stable13] Show group display names
| * Fix unit testsJoas Schilling2018-03-161-3/+10
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Fixed caldav tests and metadata 2John Molakvoæ (skjnldsv)2018-03-121-3/+3
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Fix testRoeland Jago Douma2018-04-041-1/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | reset encryptionVersion to '1' if a file was stream copied, because this ↵Bjoern Schiessle2018-04-031-1/+1
| | | | | | | | | | | | means that we basically write the file from scratch Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Use app version to generate scss filenameJohn Molakvoæ (skjnldsv)2018-03-281-12/+23
|/ | | | | | Fixed scsscacher tests Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #8745 from nextcloud/stable13-8716Morris Jobke2018-03-094-13/+33
|\ | | | | [13] Remove base url from global cache prefix
| * Mock method of actual cacheMorris Jobke2018-03-091-5/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Always return the depscacheRoeland Jago Douma2018-03-091-1/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Fix tests to use ICacheFactoryJulius Härtl2018-03-094-14/+38
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #8749 from ↵Morris Jobke2018-03-091-18/+111
|\ \ | | | | | | | | | | | | nextcloud/backport/8596/sharee-email-matches-not-limited [stable13] Sharee email matches not limited
| * | Fix calculation if there are more resultsJoas Schilling2018-03-091-19/+19
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Add tests for finding own email and user results paginationJoas Schilling2018-03-091-1/+94
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / Fix testsRoeland Jago Douma2018-03-091-0/+17
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Hardening of SimpleFile getContentRoeland Jago Douma2018-03-021-0/+22
| | | | | | | if file_get_contents fails remove the file. And traverse up the tree checking if the other folders are there. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #8099 from nextcloud/7873_13Roeland Jago Douma2018-02-281-8/+20
|\ | | | | [stable13] Don't perform CSRF check on OCS routes with Bearer auth
| * Update testsRoeland Jago Douma2018-02-081-8/+20
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Better result handling of email searchJoas Schilling2018-02-202-3/+3
| | | | | | | | | | | | | | 1. Local users should not be returned when searching for empty string 2. The limit of the response should be respected Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #8102 from nextcloud/s3-uploader-13Morris Jobke2018-02-081-5/+12
|\ \ | |/ |/| [13] Use S3Client::upload instead of splitting single/multipart upload ourselves
| * Use S3Client::upload instead of splitting single/multipart upload ourselvesRobin Appelman2018-01-291-5/+12
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #8197 from nextcloud/stable13-8144Roeland Jago Douma2018-02-073-0/+124
|\ \ | | | | | | [stable13] Repair step to clear frontend related caches
| * | Fix testsRoeland Jago Douma2018-02-061-0/+4
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Move depsCache clearing to SCSSCacher/JSCombinerJulius Härtl2018-02-063-16/+42
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Add tests and class mappingJulius Härtl2018-02-061-0/+94
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Merge pull request #8045 from nextcloud/8002_13Roeland Jago Douma2018-02-061-45/+50
|\ \ \ | |/ / |/| | [stable13] Dont polute the log on DAV emaillogin
| * | Fix testsRoeland Jago Douma2018-01-251-45/+50
| |/ | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* / Add tests for URL rewritingJulius Härtl2018-02-021-4/+14
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Backport of format self-mentions, but don't offer them #7914Arthur Schiwon2018-01-182-2/+54
| | | | | | | | | | | | | | | | | | comments should compile mentions also if done by author it is used by clients for formatting reasons, there is no reason not format the author if her handle is included in the comment body. It is unrelated to sending out notifications. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> do not offer the handle of the current user for auto completion Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> add types to php doc Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #7915 from nextcloud/backport/7909/fix-migration-type-hintsRoeland Jago Douma2018-01-171-2/+0
|\ | | | | Fix the type hints of migrations and correctly inject the wrapped sch…
| * Fix the type hints of migrations and correctly inject the wrapped schema ↵Joas Schilling2018-01-171-2/+0
| | | | | | | | | | | | into migrations Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Support arbitrary number of arguments for d:or and d:and in search queriesRobin Appelman2018-01-161-1/+6
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Don't lie about the preview mimetypeRoeland Jago Douma2018-01-071-0/+8
| | | | | | | | | | | | | | For legacy reasons we stored all the previews with a png extention. However we did not put png data in them all the time. This caused the preview endpoints to always report that a preview is a png file. Which was a lie. Since we abstract away from the storage etc in the previewmanager. There is no need anymore to store them as .png files and instead we can use the actual file extention. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* removes invalid tests, adapts another oneArthur Schiwon2018-01-031-33/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* never translate login names when requiring with a user idArthur Schiwon2018-01-031-12/+28
| | | | | | where appropriate, the preLoginNameUsedAsUserName hook should be thrown. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>