summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* save a whitespace todayblizzz2021-04-201-1/+1
| | | | | Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* ignore mail shares of related remote share resultsArthur Schiwon2021-04-201-22/+75
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #26555 from nextcloud/techdebt/noid/run-migrator-tests-on-OCIJoas Schilling2021-04-191-3/+49
|\ | | | | Run migrator tests on OCI
| * Integer 0 is not stored as Null and therefor worksJoas Schilling2021-04-161-1/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Test that oracle throws on EmptyValues in a NotNull columnsJoas Schilling2021-04-161-14/+28
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Run migrator tests on OCIJoas Schilling2021-04-161-3/+33
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Allow registering NotifierServices trough IBootstrapRoeland Jago Douma2021-04-161-1/+29
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix unit testRoeland Jago Douma2021-04-1614-19/+18
| | | | | | | | | * Fix namespace * Fix test Was broken after https://github.com/nextcloud/server/pull/26529 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Separate settings for remote share expirationVincent Petry2021-04-151-70/+207
| | | | | | | Added separate settings for default and enforced expiration date for remote shares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #26266 from nextcloud/future-proof-networkingRoeland Jago Douma2021-04-124-42/+328
|\ | | | | Improve networking checks
| * Adjust testLukas Reschke2021-04-061-7/+14
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * Improve networking checksLukas Reschke2021-04-064-42/+321
| | | | | | | | | | | | Whilst we currently state that SSRF is generally outside of our threat model, this is something where we should invest to improve this. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Increase subnet matcherLukas Reschke2021-04-071-2/+10
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Merge pull request #24966 from nextcloud/jknockaert-patch-1Lukas Reschke2021-04-061-4/+14
|\ \ | |/ |/| avoid fread on directories and unencrypted files
| * Update EncryptionTest.phpJasper Knockaert2021-01-051-3/+3
| |
| * 2nd attempt to fix testsJasper Knockaert2021-01-051-7/+11
| |
| * attemtp to fix testJasper Knockaert2021-01-051-1/+7
| |
* | Merge pull request #24055 from ↵Morris Jobke2021-04-011-20/+61
|\ \ | | | | | | | | | | | | nextcloud/bugfix/noid/enfore-no-notnull-for-boolean-to-store-false Enforce no notnull for boolean to store false
| * | Rename the method to match what it doesJoas Schilling2021-03-311-22/+22
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Don't allow Notnull for boolean columnsJoas Schilling2021-03-311-0/+41
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Get the parent directory before creating a file from a templateJulius Härtl2021-04-011-6/+16
|/ / | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #25961 from nextcloud/enh/events/2fa_providerkesselb2021-03-301-0/+7
|\ \ | | | | | | Add real events for enabled 2fa providers for users
| * | Add real events for enabled 2fa providers for usersRoeland Jago Douma2021-03-221-0/+7
| | | | | | | | | | | | | | | | | | | | | * Shiny new events * Listener to still emit the old event Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #25280 from nextcloud/explicit-file-permissionsRoeland Jago Douma2021-03-301-3/+34
|\ \ \ | | | | | | | | Set umask before operations that create local files
| * | | Set umask before operations that create local filesRobin Appelman2021-03-231-3/+34
| | | | | | | | | | | | | | | | | | | | | | | | this solves issues where "other php stuff" is messing with the umask Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | gracefully handle deleteFromSelf when share is already goneArthur Schiwon2021-03-301-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | - handling race conditions Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | | Update Mink from 1.7.1 to 1.8.1 in acceptance testsDaniel Calviño Sánchez2021-03-303-17/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since version 1.8.0 of Mink "Mink::getSession()" no longer starts the session automatically (see https://github.com/minkphp/Mink/pull/705), so it now needs to be explicitly started. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | | Update Selenium driver for Mink from 1.3.1 to 1.4.0 in acceptance testsDaniel Calviño Sánchez2021-03-304-20/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since version 1.4.0 the Selenium driver for Mink uses again the element on which the value was set (see https://github.com/minkphp/MinkSelenium2Driver/pull/286). When creating a new folder or renaming one sending a new line ("\r") caused the element on which the value was set to be removed, so the element was no longer attached to the DOM when the driver tried to use it again, and thus a "StaleElementReference" exception was thrown. Due to this now it is needed to explicitly click the confirm button when creating a new folder. In the case of the renaming, on the other hand, nothing else besides not sending the new line is needed, as the Selenium driver now unfocuses the element (that is why it uses again the element after setting the value) which triggers the renaming. Besides that, the Selenium driver for Mink uses a library to simulate certain events, bitovi/syn. In version 1.4.0 that library was updated to version 0.0.3, which seems to somehow break pressing the "escape" key. Due to this now the sharing menu has to be closed by pressing "enter" on the share menu button instead. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | | Update Behat from 3.7.0 to 3.8.1 in acceptance testsDaniel Calviño Sánchez2021-03-302-18/+18
| | | | | | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | | Update PHPUnit from 4.X to 6.X in acceptance testsDaniel Calviño Sánchez2021-03-3020-268/+682
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The PHPUnit update also required an update of "symfony/yaml", so besides the changes needed for PHPUnit the "behat.yml" file also had to be adjusted. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | | Merge pull request #26353 from ↵Joas Schilling2021-03-291-3/+15
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/techdebt/noid/make-testcase-class-compatible-with-phpunit-9.5 Make Testcase class compatible with phpunit-9.5
| * | | | Make Testcase class compatible with phpunit-9.5Joas Schilling2021-03-291-3/+15
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | Add known user check in avatar when v2-private scopeVincent Petry2021-03-261-22/+89
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | | Added PlaceholderAvatar with own cached imagesVincent Petry2021-03-261-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When avatar scope is private, the PlaceholderAvatar is used to deliver a placeholder avatar based on the user's initials. This was implemented as a separate class for now to avoid messing with the existing UserAvatar implementation and its generated vs non-generated logic. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | | Add property scope tests for AccountManagerVincent Petry2021-03-261-0/+123
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | | Map old account scope properties to new namesVincent Petry2021-03-263-34/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use new scope values in settings page. Adjust all consumers to use the new constants. Map old scope values to new ones in account property getter. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | | Add new v2-private account scopeVincent Petry2021-03-261-2/+59
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added new v2-private account manager scope that restricts the scope further by excluding public link access. Avatars with v2-private account scope are now showing the guest avatar instead of the real avatar. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | Merge pull request #26281 from hosting-de/fix/emailRoeland Jago Douma2021-03-261-2/+2
|\ \ \ \ | | | | | | | | | | Change my email address
| * | | | Change my email addressJohannes Leuker2021-03-241-2/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* | | | | Cleanup unneeded code around database.xmlMorris Jobke2021-03-2419-3271/+29
|/ / / / | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | Fix language codes test result orderVincent Petry2021-03-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fixes issue with Oracle by enforcing the order of the results to check. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | Bring back forgotten testsVincent Petry2021-03-245-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove "ocs-provider" test folder reference as it doesn't exist any more. Added back "Test" test subdir and fixed the tests inside. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | Fix more controller tests in Core subdirVincent Petry2021-03-242-8/+10
| | | | | | | | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | Fix more tests in the Core subdirVincent Petry2021-03-243-13/+20
| | | | | | | | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | Fix core tests command for app enabling/disablingVincent Petry2021-03-232-17/+17
| | | | | | | | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | Fix casing of core test folderVincent Petry2021-03-231-2/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | It seems Phpunit < 9 was case insensitive. Fixed the phpunit config to target the correct name for the "Core" test directory. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | Merge pull request #26198 from nextcloud/unified-search-nodeMorris Jobke2021-03-221-108/+202
|\ \ \ | | | | | | | | Handle limit offset and sorting in files search
| * | | handle ordering in folder searchRobin Appelman2021-03-191-20/+34
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | folder filtering in sqlRobin Appelman2021-03-191-1/+0
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | cleanup fileinfo creationRobin Appelman2021-03-191-60/+30
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>