summaryrefslogtreecommitdiffstats
path: root/build/integration
Commit message (Collapse)AuthorAgeFilesLines
...
* | Added tests for specifying custom display name during group creation.Dries Mys2021-06-052-0/+49
|/ | | | Signed-off-by: Dries Mys <dries.mys@my-dreams.be>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0431-74/+57
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add a trashbin for calendars and calendar objectsChristoph Wurst2021-05-311-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add integration tests for the editable fieldsJoas Schilling2021-05-272-0/+56
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Rename External storages to External storageszaimen2021-05-201-1/+1
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Merge pull request #26846 from ↵Morris Jobke2021-05-171-1/+1
|\ | | | | | | | | nextcloud/followup/26572/reply-with-json-when-not-accepting-html Reply with json when not accepting html on LoginException
| * Reply with UNAUTHORIZED like on APIs when login exception was thrownJoas Schilling2021-05-121-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix unauthorized OCS status in provisioningJoas Schilling2021-05-124-17/+18
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #26572 from ↵Joas Schilling2021-04-272-2/+9
|\ | | | | | | | | nextcloud/bugfix/noid/throw-401-when-authentication-is-provided-and-invalid Throw "401 Unauthenticated" when authentication is provided but invalid
| * Adjust integration testJoas Schilling2021-04-222-2/+9
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add integration tests for searching users in contacts menuDaniel Calviño Sánchez2021-04-233-0/+258
|/ | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Int tests for provisioning API scopesVincent Petry2021-03-262-2/+81
| | | | | | | Added integration tests for the scope attributes in the provisioning API. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix sharebymail testsJohn Molakvoæ (skjnldsv)2021-03-221-0/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Sharing link & mail parityJohn Molakvoæ (skjnldsv)2021-03-222-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #25331 from ↵Morris Jobke2021-03-182-0/+67
|\ | | | | | | | | nextcloud/fix-valid-storages-removed-when-cleaning-remote-storages Fix valid storages removed when cleaning remote storages
| * Add integration tests for "sharing:cleanup-remote-storages" OCC commandDaniel Calviño Sánchez2021-01-262-0/+67
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Also execute the new tests on droneJoas Schilling2021-03-101-0/+7
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add a setting to restrict returning a full match unless in phonebook or same ↵Joas Schilling2021-03-102-0/+37
| | | | | | | | | | | | group Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add integration tests for autocomplete/get (similar to sharees API)Joas Schilling2021-03-104-0/+290
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-1/+1
|/ | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2020-12-302-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make integration tests work with both PHP 7.3 and 7.4Daniel Calviño Sánchez2020-12-304-3/+5
| | | | | | | | | | | | | | | | The "Trashbin" and "WebDav" traits were using each other in a circular dependency ("WebDav" -> "Sharing" -> "Provisioning" -> "BasicStructure" -> "Trashbin" -> "WebDav"). In PHP 7.3 this worked fine, but in PHP 7.4 the fatal error "Trait 'WebDav' not found in .../Trashbin.php" was thrown. To solve this now the "TrashBin" trait no longer explicitly uses "WebDav". However, due to this change, the class using "TrashBin" is now expected to also use "WebDav". As the "Trashbin" trait was not needed by most contexts using the "BasicStructure" trait "Trashbin" was removed from it and added only to those contexts that actually need it. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-1612-9/+14
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #24486 from nextcloud/feature/noid/phone-number-validationJoas Schilling2020-12-082-4/+65
|\ | | | | Phone number validation and search
| * Unit tests for searching by phone numberJoas Schilling2020-12-071-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Add a config for default region of phone numbersJoas Schilling2020-12-071-2/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Add an integration test for the phone search APIJoas Schilling2020-12-072-4/+65
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add integration tests for getting guest avatarsDaniel Calviño Sánchez2020-12-072-0/+30
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add integration tests for resized user avatarsDaniel Calviño Sánchez2020-12-072-7/+88
| | | | | | | | | | | | | | | | Even on solid color images the resizing can cause some small artifacts that slightly modify the color of certain pixels. Due to this now the color comparison is no longer strict but fuzzy. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add integration tests for user avatarsDaniel Calviño Sánchez2020-12-075-0/+344
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Make possible to set body in requesttoken requests in integration testsDaniel Calviño Sánchez2020-12-071-7/+17
| | | | | | | | | | | | | | | | | | | | "sendingAToWithRequesttoken" needs to be used to test some non OCS endpoints which require the request token to be sent in the request. Now it is possible to specify the body (or, rather, additional contents beside the cookies and the request token) for those requests, as it will be needed for example to upload an avatar. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Make possible to send requests as anonymous users in integration testsDaniel Calviño Sánchez2020-12-071-2/+2
|/ | | | | | | | | Until now requests always had "auth" headers either for an admin or a regular user, depending on the value of "currentUser". Now, if "currentUser" starts by "anonymous" no "auth" header is sent, which makes possible to also test requests with users not logged in. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Set frame-ancestors to none if none are filledRoeland Jago Douma2020-11-181-1/+1
| | | | | | | | frame-ancestors doesn't fall back to default-src. So when we apply a very restricted CSP we should make sure to set it to 'none' and not leave it empty. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add integration tests for creating shares with default expiration datesDaniel Calviño Sánchez2020-11-162-0/+112
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Reset app configs by deleting the values instead of setting the defaultsDaniel Calviño Sánchez2020-11-165-18/+31
| | | | | | | | This avoids the need to keep the default values in the integration tests in sync with the code, and also makes possible to reset values with "dynamic" defaults (defaults that depend on other values). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add integration tests for default share permissionsDaniel Calviño Sánchez2020-11-112-0/+35
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Update behat/behat requirement in /build/integrationdependabot-preview[bot]2020-11-071-1/+1
| | | | | | | | Updates the requirements on [behat/behat](https://github.com/Behat/Behat) to permit the latest version. - [Release notes](https://github.com/Behat/Behat/releases) - [Changelog](https://github.com/Behat/Behat/blob/master/CHANGELOG.md) - [Commits](https://github.com/Behat/Behat/compare/v3.7.0...v3.8.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Fix the expected outputJoas Schilling2020-10-271-6/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Simplify the function looking for outputJoas Schilling2020-10-271-27/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* This is not javascriptJoas Schilling2020-10-261-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix undefined variableJoas Schilling2020-10-261-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-053-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add integration tests to check that only the given path is transferredDaniel Calviño Sánchez2020-09-181-0/+51
| | | | | | | | | | | | Until recently (it was fixed in ac2999a26a) when a path was transferred other shares with the target user were removed, so a test was added to ensure that it does not happen again. Besides that a test to ensure that other files with the target user are not transferred was added too (it did not fail before, but seemed convenient to have that covered too :-) ). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add integration tests for transferring files of a user with a risky nameDaniel Calviño Sánchez2020-09-183-1/+41
| | | | | | | | | | | The files:transfer-ownership performs a sanitization of users with "risky" display names (including characters like "\" or "/"). In order to allow (escaped) double quotes in the display name the regular expression used in the "user XXX with displayname YYY exists" step had to be adjusted. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add integration test for transferring the path of a single fileDaniel Calviño Sánchez2020-09-181-0/+14
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Merge pull request #22761 from ↵Morris Jobke2020-09-141-1/+216
|\ | | | | | | | | nextcloud/extend-integration-tests-for-files-transfer-ownership-command Extend integration tests for "files:transfer-ownership" command
| * Add integration tests for transferring ownership of resharesDaniel Calviño Sánchez2020-09-101-0/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently only transferring ownership of a reshare with a group to a user in the group is possible. When transferring ownership of a reshare with another user or with a group to a user not in the group restoring the share fails (but the command succeeds, it only fails for the specific files that are reshares). When transferring ownership of a path that is a reshare the command fails (as when a specific path is provided the path tries to move the file, it does not take into account reshares). The added integration tests reflect the above behaviours. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Check share ownership after transferring file ownershipDaniel Calviño Sánchez2020-09-101-0/+62
| | | | | | | | | | | | | | | | The integration tests did not verify that the shares were actually transferred between the users (or that they were removed due to being transferred to the sharee). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Check whether file exists or not after transferring ownershipDaniel Calviño Sánchez2020-09-101-1/+54
| | | | | | | | | | | | | | The integration tests did not verify that the files were actually transferred between the users, only that the files were downloadable. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Update behat/behat requirement in /build/integrationdependabot[bot]2020-09-081-1/+1
|/ | | | | | | | Updates the requirements on [behat/behat](https://github.com/Behat/Behat) to permit the latest version. - [Release notes](https://github.com/Behat/Behat/releases) - [Changelog](https://github.com/Behat/Behat/blob/master/CHANGELOG.md) - [Commits](https://github.com/Behat/Behat/compare/v3.6.1...v3.7.0) Signed-off-by: dependabot[bot] <support@github.com>