aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix share testsRoeland Jago Douma2019-11-201-0/+7
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* add way for version backends to programmatically specify if they should be usedRobin Appelman2019-05-211-0/+84
| | | | | | this allows for backends that should only be used if specific conditions are met Signed-off-by: Robin Appelman <robin@icewind.nl>
* modular versions apiRobin Appelman2018-11-011-18/+37
| | | | | | | Allows apps to register version backends for storage types The existing versions backend is wrapped in a "legacy" backend. Signed-off-by: Robin Appelman <robin@icewind.nl>
* Set error expected by the DAV client for a failed moveDaniel Calviño Sánchez2018-10-251-2/+10
| | | | | | | | | | | | | A revert triggers a move in the DAV client, and the DAV client expects a DAV error message to be provided by the server in case of failure; if no error message is given the client ends trying to get an attribute from an undefined object and "crashes". Besides that, if the revert fails the "done" callback of the promise (the first parameter of "then") is never called, so a "fail" callback should be used instead. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Wait for the promise to be fulfilled before running the next testDaniel Calviño Sánchez2018-10-251-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | In Jasmine 2.5 the "it" function takes an optional parameter that should be called when the async work is completed (returning a promise was introduced in Jasmine 2.7, so it is not supported yet in the tests). If the parameter is not declared then the next test is executed without waiting for the asynchronous work in the previous one to finish, which could cause that asynchronous work to finish while a different test is being run. Note that if that happens the test could still work as expected if it relied only in local variables. However, in the case of the successful revert tests, the stubs being checked are not the ones created when that test was initialized, but the ones created when the next test, the failed revert test, was initialized and the previous variables were replaced (although the model itself calls the proper stubs, as they are set through parameters in function calls). Besides all that, the checks in the failed revert test were never executed due to a different problem which will be fixed in the next commit. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* move versions webui over to the dav apiRobin Appelman2018-10-113-224/+38
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix mock of ITimeFactoryJoas Schilling2018-10-101-41/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix risky tests without assertionsJoas Schilling2018-01-251-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Change @georgehrke's emailMorris Jobke2017-11-061-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-062-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocks of dav appMorris Jobke2017-10-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-1/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove legacy OC_User_Backend and OC_User_InterfaceRoeland Jago Douma2017-07-241-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Proper exception for upload of .htaccess file via WebDAVMorris Jobke2017-05-081-12/+12
| | | | | | * fixes #2860 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* added quit option in commentstabview.jsnoveens2017-03-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added quit option in notif in app.js added quit option in notif in file-upload.js added quit option in notif in fileinfomodel.js added quit option in notif in filelist.js added quit option in notif in filelist.js added quit option in notif in tagsplugin.js added quit option in notif in statusmanager.js added quit option in notif in external.js added quit option in notif in versionstabview.js added quit option in notif in notification.js changes according to the latest review. timeout removed since there is a button to close it translation capability added typo fixed test files updated small errors fixed Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly expire ext storage versions (#26601)Vincent Petry2017-03-101-1/+13
| | | | | | | | | | | | | | | | | | * Properly expire ext storage versions System-wide external storages have no real owner so the current user is used as owner. However when running cron.php there is no current user, so no expiry can be done. This fix adds an user argument to the expire() function to tell for which user to expire files. This information is anyway always available now through the expire command job. * Move version expire setupFS into the expire function * Add comment about not tearing down in version Storage::expire() Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix js testsRoeland Jago Douma2016-11-291-8/+11
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Display changes in file versions tab view and detailsView (#26511)Michael Jobst2016-11-141-1/+2
| | | | | | | | | | | * Display changes in file versions tab view and detailsView * versions tab enhancements enhanced js test file removed css superscript attribute for version size * Replaced spaces with tabs
* More testsRoeland Jago Douma2016-11-031-0/+167
| | | | | | | | | * PreviewController test * PublicPreview test * Versions Preview test * Trash Preview test Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move OC\Files\Storage\Shared to the right namespaceJoas Schilling2016-10-201-1/+1
|
* Fix getMock files_versionsRoeland Jago Douma2016-09-061-1/+2
|
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix apps/Joas Schilling2016-07-214-8/+12
|
* Hide revert button when no permission to revertVincent Petry2016-06-282-2/+64
|
* Update license headersLukas Reschke2016-05-262-4/+5
|
* Move files_versions to PSR-4 (#24571)Joas Schilling2016-05-124-2/+4
|
* Fix testsRoeland Jago Douma2016-04-191-30/+51
|
* apps: Fix typos (found by codespell) (#23862)Stefan Weil2016-04-121-2/+2
| | | Signed-off-by: Stefan Weil <sw@weilnetz.de>
* set watch policy in testRobin Appelman2016-03-211-0/+15
|
* Update author informationLukas Reschke2016-03-011-0/+1
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* versions provide more information when throwing hooksArthur Schiwon2016-02-081-1/+3
|
* cleanup shared cacheRobin Appelman2016-01-281-2/+2
|
* Safe teardownsRobin Appelman2016-01-141-4/+6
|
* Happy new year!Thomas Müller2016-01-124-4/+7
|
* Removed deprecated function OC_User::deleteUserRoeland Jago Douma2015-12-171-2/+4
| | | | Replaced with proper OCP calls
* Add DB group to some files_external testsThomas Müller2015-11-302-0/+14
| | | | | | | | | | Adding group Db to federation tests and ldap tests Add group DB to Test_UrlGenerator Adding group DB to trashbin and versions tests Adding group DB to Test_Util_CheckServer for pg
* Adding more DB groups to test suitsThomas Müller2015-11-301-0/+2
| | | | Adding more DB groups to test suits
* update testsRobin Appelman2015-11-191-1/+0
|
* Update license headersLukas Reschke2015-10-261-0/+1
|
* Throw exception on `getPath` if file does not existLukas Reschke2015-10-251-2/+5
| | | | | | | | | | Currently the `getPath` methods returned `NULL` in case when a file with the specified ID does not exist. This however mandates that developers are checking for the `NULL` case and if they do not the door for bugs with all kind of impact is widely opened. This is especially harmful if used in context with Views where the final result is limited based on the result of `getPath`, if `getPath` returns `NULL` PHP type juggles this to an empty string resulting in all possible kind of bugs. While one could argue that this is a misusage of the API the fact is that it is very often misused and an exception will trigger an immediate stop of execution as well as log this behaviour and show a pretty error page. I also adjusted some usages where I believe that we need to catch these errors, in most cases this is though simply an error that should hard-fail.
* Fix rename shared versions testRobin Appelman2015-10-161-3/+2
|
* test objectstore with ceph dockerJörn Friedrich Dreyer2015-10-061-1/+1
| | | | | | | | | | | | | | | | use default config for swift primary storage test config allow testsuite to complete fix timeout, script cleanup, enable debug for now use btrfs loopback device, requires privileged container and absolute path throw exception when storage has problems debug by echo ... sleep more, more debug
* update licence headers via scriptMorris Jobke2015-10-052-0/+3
|
* Fix moment.js "a few seconds ago" with "seconds ago"Morris Jobke2015-10-021-1/+1
| | | | * fixes #18627
* Add the method to the mockJoas Schilling2015-09-251-0/+1
|
* Merge pull request #15098 from owncloud/fix_preview_versions_revert_issueThomas Müller2015-09-241-0/+37
|\ | | | | fix issue with version rollback and thumbnails
| * delete cached preview when rolling back file's versionGeorg Ehrke2015-09-201-0/+37
| | | | | | | | | | | | | | | | add random number using OC.parseQueryString and _.extend() version rollback: add missing prefix to OC\Preview::post_delete add test to assure that the rollback hook is called
* | Move dummy backend to Tests namespaceLukas Reschke2015-09-221-1/+1
|/
* Follow PSRVictor Dubiniuk2015-09-151-0/+0
|
* Namespacing, reusingVictor Dubiniuk2015-09-151-2/+4
|