summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Clean pending 2FA authentication on password resetRoeland Jago Douma2019-01-301-1/+6
| | | | | | | | | | | When a password is reste we should make sure that all users are properly logged in. Pending states should be cleared. For example a session where the 2FA code is not entered yet should be cleared. The token is now removed so the session will be killed the next time this is checked (within 5 minutes). Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* always use multipart uploader for s3 uploadsRobin Appelman2019-01-291-3/+28
| | | | | | the multipart uploader handles non seekable streams while `upload` does not Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add acceptance tests for moving and copying selections to another folderDaniel Calviño Sánchez2019-01-232-0/+126
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add acceptance tests for moving and copying files to another folderDaniel Calviño Sánchez2019-01-234-0/+178
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Merge pull request #13758 from nextcloud/backport/13747/stable15Morris Jobke2019-01-231-0/+24
|\ | | | | [stable15] Honor remember_login_cookie_lifetime
| * Honor remember_login_cookie_lifetimeRoeland Jago Douma2019-01-231-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | If the remember_login_cookie_lifetime is set to 0 this means we do not want to use remember me at all. In that case we should also not creatae a remember me cookie and should create a proper temp token. Further this specifies that is not 0 the remember me time should always be larger than the session timeout. Because else the behavior is not really defined. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #13740 from nextcloud/backport/13140/stable15Morris Jobke2019-01-231-0/+8
|\ \ | |/ |/| [stable15] Cache tokens when using swift's v2 authentication
| * Cache tokens when using swift's v2 authenticationRobin Appelman2019-01-221-0/+8
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | cleanup shared lock if changing to exclusive lock failedRobin Appelman2019-01-221-0/+31
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix template paramterRoeland Jago Douma2019-01-181-1/+1
| | | | | | Else we get shown an error page instead of the correct 403. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #13036 from nextcloud/objectstore-write-exists-15Roeland Jago Douma2019-01-144-1/+122
|\ | | | | [15] upload new files in objectstore to a .part path first
| * upload new files in objectstore to a .part path firstRobin Appelman2018-12-123-1/+107
| | | | | | | | | | | | | | | | This prevent the object store and cache from getting out of sync when an objectstore silently fails or the php process get's killed during the upload without giving us the chance to cleanup Signed-off-by: Robin Appelman <robin@icewind.nl>
| * Add objectExists to objectstore interfaceRobin Appelman2018-12-121-0/+15
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | CSP: Allow fonts to be provided in dataRoeland Jago Douma2019-01-075-63/+63
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | fix can change password check in case of encryption is enabledBjoern Schiessle2019-01-041-1/+47
| | | | | | | | | | | | | | | | | | | | | | | | Admin should _not_ be able to change password when: - if an encryption module is loaded and it uses per-user keys - if encryption is enabled but no encryption modules are loaded Admin should be able to change the password when: - no encryption module is loaded and encryption is disabled - encryption module is loaded but it doesn't require per user keys Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Add acceptance tests for opening search results for commentsDaniel Calviño Sánchez2019-01-033-0/+91
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add acceptance tests for searching commentsDaniel Calviño Sánchez2019-01-033-0/+152
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Use a case insensitive search for emailRoeland Jago Douma2018-12-201-2/+3
| | | | | | | | | | | | | | | | Fixes #7084 Now entering wrongly cased email (roeland@ instead of Roeland@) for password reset etc. Will also work. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Only trust the X-FORWARDED-HOST header for trusted proxiesRoeland Jago Douma2018-12-191-53/+90
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add acceptance tests for comments on shared files and foldersDaniel Calviño Sánchez2018-12-072-0/+209
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Log and continue on Dav reader failureJohn Molakvoæ (skjnldsv)2018-12-051-2/+9
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add setup check for pending bigint conversionMorris Jobke2018-12-051-0/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update casing of PHP inside method nameMorris Jobke2018-12-041-6/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add setup check for recommended PHP modules (i.e. Imagick, intl)Morris Jobke2018-12-041-0/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #12692 from nextcloud/storage-no-encryption-interface-15Morris Jobke2018-11-291-7/+1
|\ | | | | [15] Add interface to allow storages from opting out of encryption
| * update encryption wrapper testsRobin Appelman2018-11-291-7/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #12736 from nextcloud/backport/12424/stable15Roeland Jago Douma2018-11-293-14/+50
|\ \ | | | | | | [stable15] Add pipe mode for sendmail
| * | Add testcases for pipe modeDaniel Kesselberg2018-11-293-14/+50
| | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | Fix testsJohn Molakvoæ (skjnldsv)2018-11-291-64/+0
|/ / | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Fix folder path containing leading slash when getting mount root by idRobin Appelman2018-11-281-0/+48
| | | | | | | | | | | | | | | | This fixes collabora on public link shared groupfolders Fixes https://github.com/nextcloud/groupfolders/issues/225 Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Rename "FilesSharingAppContext" to "PublicShareContext"Daniel Calviño Sánchez2018-11-272-3/+3
| | | | | | | | | | | | | | | | Having both "FilesAppSharingContext" and "FilesSharingAppContext" was confusing, so "FilesSharingAppContext" was renamed to a more descriptive name. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Extract locators and steps for sharing in Files app to their own contextDaniel Calviño Sánchez2018-11-273-489/+519
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Extract sharing related acceptance tests to their own feature filesDaniel Calviño Sánchez2018-11-273-416/+418
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add acceptance tests for folders that can not be resharedDaniel Calviño Sánchez2018-11-272-0/+142
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add acceptance tests for resharing a folder with another userDaniel Calviño Sánchez2018-11-271-0/+52
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add acceptance test for checking that the owner can see resharesDaniel Calviño Sánchez2018-11-271-0/+25
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add acceptance test for resharing a file with another userDaniel Calviño Sánchez2018-11-274-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To reshare a file there must be at least three enabled users in the system; although it would be possible to run the steps to create a third user in the scenarios that need it for convenience a third enabled user besides "admin" and "user0" was added to the default setup. In a similar way, a new step was added too to login as a given user name, similar to the steps to log in as "user0" and as "admin". Finally, another actor, "Jim", was introduced for those scenarios which should be played by three standard actors (that is, without a special configuration like "Rubeus"). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add acceptance tests for sharing a folder with another userDaniel Calviño Sánchez2018-11-271-0/+59
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add acceptance tests for sharing a file with another userDaniel Calviño Sánchez2018-11-272-0/+143
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Wait for the comment to be added before changing to another fileDaniel Calviño Sánchez2018-11-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the server is too slow, changing to a different file immediately after sending a new comment but without waiting for the comment to be shown for the original file could cause the new comment to be shown for the current file instead. This is, indeed, a bug in the comments. However, it is not possible to test it reliably in the acceptance tests, as it depends on how fast the server adds the message and how fast the client changes to a different file; sometimes the test would fail and sometimes it would not. Therefore, now it is waited for the comment to be added before changing to another file, as in this case it can be reliably tested that changing to a different file does not cause the comments from the previous file to be shown in the current file (this was a different bug already fixed and due to which this test was added in the first place). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Wait for the empty content element to be shownDaniel Calviño Sánchez2018-11-271-2/+6
|/ | | | | | | | | | | | When the "Comments" tab is open the empty content element is always in the DOM, although it is only shown once the message collection was fetched and there were no messages. Due to this it is necessary to explicitly wait for it to be shown instead of relying on the implicit wait made to find the element; otherwise it would be found immediately and if the collection was not fetched yet it would not be visible, causing the test to fail. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Merge pull request #12571 from ↵Morris Jobke2018-11-221-6/+20
|\ | | | | | | | | TheLastProject/feature/make_connectivity_check_domains_changeable Make connectivity check domains configurable
| * Make connectivity check domains configurableSylvia van Os2018-11-221-6/+20
| | | | | | | | Signed-off-by: Sylvia van Os <sylvia@hackerchick.me>
* | Merge pull request #12553 from ↵Morris Jobke2018-11-221-32/+32
|\ \ | | | | | | | | | | | | nextcloud/bugfix/noid/allow-empty-string-in-getAbsoluteURL Allow empty string in get absolute url
| * | Allow empty strings in getAbsoluteURLJoas Schilling2018-11-201-0/+2
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Update the URLGenerator test to current state of artJoas Schilling2018-11-201-32/+30
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add acceptance tests for showing again the input field for tagsDaniel Calviño Sánchez2018-11-221-0/+11
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add acceptance tests for opening and closing again the details viewDaniel Calviño Sánchez2018-11-221-0/+37
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add acceptance tests for marking a file as favorite in the details viewDaniel Calviño Sánchez2018-11-222-0/+80
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add acceptance tests for switching to the comments of another fileDaniel Calviño Sánchez2018-11-222-0/+51
|/ | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>