summaryrefslogtreecommitdiffstats
path: root/apps/federation/tests
Commit message (Collapse)AuthorAgeFilesLines
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0410-11/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* More cleaning after auto-add removalJoas Schilling2021-04-273-124/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Drop all dead packagesChristoph Wurst2020-12-232-75/+0
| | | | | | | | Apparently we have plenty of leftover of previous sub-dependencies. Composer automatically dumps those with any future dependency update, so I'm dropping them in an atomic step. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't leave cursors open when tests failJoas Schilling2020-11-091-10/+40
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-249-0/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-1210-53/+53
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headers for 19Christoph Wurst2020-04-295-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-107-17/+1
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-093-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-098-8/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-092-10/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-0511-12/+15
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* TO REVERT LATER: disable some DbHandlerTestRoeland Jago Douma2019-11-271-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Mode to modern phpunitRoeland Jago Douma2019-11-2710-15/+18
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-2710-11/+11
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-2210-10/+2
| | | | | | | | | | | * 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 deprecated functions from SecureRandomRoeland Jago Douma2018-12-071-1/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* improve error reporting and move format parameter to the optionsBjoern Schiessle2018-04-253-57/+18
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-231-6/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Catch the errors related to untrusted self signed certificates for federationRoeland Jago Douma2017-12-112-0/+76
| | | | | | * Added tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Actually set the status so we don't cause another exceptionRoeland Jago Douma2017-11-292-0/+76
| | | | | | * And add tests so I don't mess up again Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-068-0/+13
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ITimeFactoryRoeland Jago Douma2017-08-014-71/+181
| | | | | | | * Inject the timefacotry so we can mock it properly in the tests. * Extended unit tests to cover the new paths Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* we don't need to remove the job manually here, even if we ask once more the ↵Bjoern Schiessle2017-08-011-2/+0
| | | | | | other server will decline and the background job will be removed Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* update unit testsBjoern Schiessle2017-08-012-12/+34
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* expire requestSharedSecret job after 30 daysBjoern Schiessle2017-08-011-2/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* expire getShareadSecret job after 30 daysBjoern Schiessle2017-08-011-10/+18
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* adjust existing testsBjoern Schiessle2017-04-113-8/+38
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* only execute code if exception was thrown by the corresponding controllerBjoern Schiessle2017-03-241-3/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* don't add server automatically to trusted serverBjoern Schiessle2016-11-171-1/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix deprecated getMock call in Federation appRoeland Jago Douma2016-08-316-29/+33
|
* Use function parametersRoeland Jago Douma2016-08-281-7/+2
|
* Move OCSAuthAPI to AppFrameworkRoeland Jago Douma2016-08-281-29/+36
| | | | | | * Convert class * Convert routes * Convert tests
* Use MockBuilder instead of createMockLukas Reschke2016-08-151-1/+1
| | | | CI uses an older PHPUnit
* Add unit testsLukas Reschke2016-08-151-0/+70
|
* improve federation error messagesBjoern Schiessle2016-08-091-2/+1
|
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix apps/Joas Schilling2016-07-2110-16/+27
|
* fix federation stringsMorris Jobke2016-06-201-1/+1
|
* Update license headersLukas Reschke2016-05-269-10/+16
|
* Fix errors in the testsJoas Schilling2016-05-195-10/+20
|
* Move federation tests to PSR-4Joas Schilling2016-05-1910-4/+4
|
* Do not create a new job when it failed to connect atmJoas Schilling2016-03-212-14/+39
|
* Update author informationLukas Reschke2016-03-015-2/+25
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* remove remote address book if the admin removes the server from the trusted ↵Bjoern Schiessle2016-02-292-4/+32
| | | | servers list
* reuse the url_hash instead of calculating a new hash for the address bookBjoern Schiessle2016-02-262-7/+9
|
* Remove background job if the server accepted to ask for the shared secretBjoern Schiessle2016-02-151-0/+3
| | | | | | If we don't remove it the server will later ask the remote server to ask for the shared secret which will result in a error log message on the remote server and in some circumstances maybe even to a failure
* Forward exception message to the admin in case of errors and in case the ↵Thomas Müller2016-02-092-16/+27
| | | | remote server version is to low and appropriate message is displayed as well
* Fix PHPDoc and signatureLukas Reschke2016-01-261-1/+1
|