summaryrefslogtreecommitdiffstats
path: root/build/integration/features
Commit message (Collapse)AuthorAgeFilesLines
* Revert "[stable18] Fix password changes in link and mail shares"Morris Jobke2020-05-296-311/+8
|
* Add integration tests for video verificationDaniel Calviño Sánchez2020-05-291-0/+72
| | | | | | | | | | | | | | Enabling the "send password by Talk" property of shares require that Talk is installed and enabled, so the Drone step that runs them has to first clone the Talk repository. When the integration tests are run on a local development instance, however, it is not guaranteed that Talk is installed. Due to this the "@Talk" tag was added, which ensures that any feature or scenario marked with it will first check if Talk is installed and, if not, skip the scenario (instead of failing). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add integration tests for creating and updating a mail shareDaniel Calviño Sánchez2020-05-294-1/+221
| | | | | | | | | | | | | | | | | | | | | In most cases, when a mail share is created or updated an e-mail is sent to the sharee, which is done by connecting to the SMTP server set in the configuration. If the server can not be contacted then the creation or update of the mail share fails. To make possible to test mail shares without using a real SMTP server a fake one has been added. The original script, which is MIT licensed, was based on inetd, so it was slightly modified to run on its own. In order to use it from the integration tests the "Given dummy mail server is listening" step has to be called in the scenarios in which the mail server is needed. For now that is the only available step; things like checking the sent mails, while possible (as the script can log the mails to certain file), have not been added yet. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Generalize integration test steps to download last shareDaniel Calviño Sánchez2020-05-291-2/+16
| | | | | | | Note that the "last link share can be downloaded" step was kept as it tests the "url" property specific of link shares. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Remove unused variablesDaniel Calviño Sánchez2020-05-291-7/+4
| | | | | | The step names were adjusted accordingly. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix testsJohn Molakvoæ (skjnldsv)2019-12-101-0/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update license headersChristoph Wurst2019-12-0525-33/+75
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Do not call count on nullJulius Härtl2019-11-291-2/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Accept incoming shares in integration testsDaniel Calviño Sánchez2019-11-209-0/+90
| | | | | | | | | Now all incoming shares need to be explicitly accepted before being able to use the shared file or get information about a reshare (although getting the information of the incoming share is possible before accepting it). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Replace direct calls to share API with specific share stepsDaniel Calviño Sánchez2019-11-203-30/+30
| | | | | | | This makes possible to use steps that reference the last share, which will be needed to accept pending shares. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add integration tests for getting shares including subfilesDaniel Calviño Sánchez2019-10-251-0/+108
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Replace fully qualified name with aliasDaniel Calviño Sánchez2019-10-251-10/+11
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Do not expect a 200 HTTP status code when updating a shareDaniel Calviño Sánchez2019-10-041-2/+0
| | | | | | | | | | | | | This will be needed to test scenarios in which updating a share return a different HTTP status code, like 401. The assertion for the 200 HTTP status code was added in those scenarios that tested updating a share (that is, those that were also checking the OCS status code), but not in those in which updating a share was just a preparatory step for the actual test (in the same way that the HTTP status code is not checked in those tests when creating a share). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Move sharing integration tests to their own directoryJohn Molakvoæ (skjnldsv)2019-10-044-1274/+40
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Move settings to an appChristoph Wurst2019-09-281-0/+1
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Better check reshare permissions when creating a shareJoas Schilling2019-07-031-0/+60
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add integration test for increasing sub reshare permissionsDaniel Calviño Sánchez2019-06-272-0/+43
| | | | | | | | The tests check an user share and a link share; there is a slight difference in style between them as each one is based on the test above it, which tests increasing reshare permissions. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Do not create folders with admin userDaniel Calviño Sánchez2019-06-271-3/+5
| | | | | | | | | | The admin user is not deleted after each integration test is run, so folders created by the admin user in one test are still there when the next tests run; tests should be independent one from each other, so a regular user that is created and deleted for each test should be used instead. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* add LDAP integr. test for receiving share candidates with group limitationArthur Schiwon2019-06-147-101/+84
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add integration tests for updating folder sharesJulius Härtl2019-04-162-0/+49
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* with LDAP server set offline, config cannot be controlled via ocs anymoreArthur Schiwon2019-03-051-0/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Mock name for integration testDaniel Kesselberg2019-02-041-0/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fix testsRoeland Jago Douma2018-11-011-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* fix sharing trashbin integration testsRobin Appelman2018-09-202-3/+23
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* more trashbin integration testsRobin Appelman2018-09-202-26/+101
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix trashbin integration tests and add a few moreRobin Appelman2018-09-203-66/+85
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* remove old trashbin endpointRobin Appelman2018-09-201-5/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* don't add new LDAP configs if one is already presentArthur Schiwon2018-08-121-1/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* improve fail info and disable cache for a caseArthur Schiwon2018-08-121-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Phpunit changed, use proper Assert classArthur Schiwon2018-08-121-7/+7
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* tests for user storage locationArthur Schiwon2018-08-101-8/+15
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* convert pagination testsArthur Schiwon2018-08-091-0/+15
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* convert connection testsArthur Schiwon2018-08-091-0/+7
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix prov testsArthur Schiwon2018-08-091-0/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* integration test to ensure entries without displayname don't cause troubleArthur Schiwon2018-08-091-9/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* convert LDAP offline and backup server integration testsArthur Schiwon2018-08-091-0/+13
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* integration test checking the group filterArthur Schiwon2018-08-091-0/+31
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* check user detailsArthur Schiwon2018-08-091-0/+20
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* behat integration tests for LDAP, basic setupArthur Schiwon2018-08-091-0/+22
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add integration test for creating room shares when Talk is not enabledDaniel Calviño Sánchez2018-08-082-0/+36
| | | | | | | | The test just ensures that the controller will gracefully reject the creation instead of failing miserably; the integration tests when Talk is enabled are in the Talk repository. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add integration tests for searching files by commentsDaniel Calviño Sánchez2018-07-253-0/+357
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix transfering ownership of a share to user with same id as receiverDaniel Calviño Sánchez2018-07-241-0/+13
| | | | | | | | | When the ownership of a user share is transfered to the receiver the share is removed, as the receiver now owns the original file. However, due to a missing condition, any share with a group, link or remote with the same id as the user was removed, not only the user shares. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* add some integration testsBjoern Schiessle2018-07-111-0/+27
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix integration tests for Federation 2.0Morris Jobke2018-07-041-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Extend integration tests to get the info of a group share as a shareeDaniel Calviño Sánchez2018-06-291-0/+73
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Check all paths for own files and sharesDaniel Calviño Sánchez2018-06-281-1/+7
| | | | | | | | Add "PARENT (2)" and its subdirectories to the paths to be checked, as before only the own "PARENT" folder was being checked, but not the shared one. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix filenames in sharing integration testsDaniel Calviño Sánchez2018-06-281-3/+3
| | | | | | | | | | | | | When a file is shared and the receiver of the share already has a file with the same name that file is left untouched, and "(2)" is appended to the name of the shared file. As "textfile0.txt" is included in the user folder skeleton all the users in the integration test have that file, so when it is shared the receiver sees the share as "/textfile0 (2).txt", and her own file as "/textfile0.txt". Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix integration testsJohn Molakvoæ (skjnldsv)2018-06-251-0/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fixed phpunit Test classJohn Molakvoæ (skjnldsv)2018-06-1311-70/+81
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Return proper boolean user enabled state apiJohn Molakvoæ (skjnldsv)2018-04-161-2/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>