summaryrefslogtreecommitdiffstats
path: root/build
Commit message (Collapse)AuthorAgeFilesLines
* Force composer v1Julius Härtl2020-12-041-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* cleanup after autoloader generationRobin Appelman2020-12-041-0/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* dont use system composer for autoload checkerRobin Appelman2020-12-041-17/+9
| | | | | | this ensures that the same composer version is used by everyone (and ci) Signed-off-by: Robin Appelman <robin@icewind.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>
* 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>
* Add integration tests for transferring ownership of resharesDaniel Calviño Sánchez2020-09-171-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-171-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-171-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>
* Use proper branch name in phpdoc buildsJulius Härtl2020-08-271-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add php docs build scriptJulius Härtl2020-08-271-0/+11
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add integration tests for search in groupsMorris Jobke2020-08-052-1/+61
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add more integration tests for resharing permissionsDaniel Calviño Sánchez2020-07-091-0/+244
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add another test for exact matching of a user in group restrictionJoas Schilling2020-06-231-0/+17
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add integration tests for video verificationDaniel Calviño Sánchez2020-05-293-0/+577
| | | | | | | | | | | | | | 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-295-0/+305
| | | | | | | | | | | | | | | | | | | | | 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-292-4/+18
| | | | | | | 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-292-10/+7
| | | | | | The step names were adjusted accordingly. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Update public link share permission codeRoeland Jago Douma2020-05-181-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #20655 from ↵Roeland Jago Douma2020-04-292-27/+43
|\ | | | | | | | | nextcloud/dependabot/npm_and_yarn/build/node-sass-4.14.0 Bump node-sass from 4.13.0 to 4.14.0 in /build
| * Bump node-sass from 4.13.0 to 4.14.0 in /builddependabot-preview[bot]2020-04-292-27/+43
| | | | | | | | | | | | | | | | Bumps [node-sass](https://github.com/sass/node-sass) from 4.13.0 to 4.14.0. - [Release notes](https://github.com/sass/node-sass/releases) - [Changelog](https://github.com/sass/node-sass/blob/master/CHANGELOG.md) - [Commits](https://github.com/sass/node-sass/compare/v4.13.0...v4.14.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* | Update license headers for 19Christoph Wurst2020-04-2912-0/+12
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #19793 from nextcloud/bugfix/noid/link-to-federated-reshareMorris Jobke2020-04-271-3/+3
|\ | | | | Fix resharing of federated shares that were created out of links
| * Adjust integration tests to new permissionsJulius Härtl2020-04-231-3/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Revert "Update guzzlehttp/guzzle requirement from 6.5.2 to 6.5.3 in ↵Roeland Jago Douma2020-04-221-1/+1
|/ | | | /build/integration"
* Update guzzlehttp/guzzle requirement in /build/integrationdependabot-preview[bot]2020-04-191-1/+1
| | | | | | | | Updates the requirements on [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) to permit the latest version. - [Release notes](https://github.com/guzzle/guzzle/releases) - [Changelog](https://github.com/guzzle/guzzle/blob/6.5.3/CHANGELOG.md) - [Commits](https://github.com/guzzle/guzzle/compare/6.5.2...6.5.3) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Merge pull request #20037 from ↵blizzz2020-04-151-0/+22
|\ | | | | | | | | nextcloud/fix/19127/deprecated-ldap_control_paged_result_1 do not use deprecated API for LDAP paged results
| * use serverControls directly with LDAP calls, fixes 19127Arthur Schiwon2020-04-141-0/+22
| | | | | | | | | | | | | | | | - adapters for PHP API version to Support PHP < 7.3 - switch to pass only one base per search - cookie logic is moved from Access to API adapters Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Allow local remotes in integration testsJoas Schilling2020-04-151-0/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix jsunit testsDaniel Kesselberg2020-04-142-84/+390
|/ | | | | | JSUnit tests are failing for some reason. It seems to be related to a new karma-coverage version published a few hours ago. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fix app not listed in provisioning integration testDaniel Calviño Sánchez2020-04-131-0/+1
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Bump jsdoc from 3.6.3 to 3.6.4 in /builddependabot-preview[bot]2020-04-122-45/+51
| | | | | | | | Bumps [jsdoc](https://github.com/jsdoc/jsdoc) from 3.6.3 to 3.6.4. - [Release notes](https://github.com/jsdoc/jsdoc/releases) - [Changelog](https://github.com/jsdoc/jsdoc/blob/3.6.4/CHANGES.md) - [Commits](https://github.com/jsdoc/jsdoc/compare/3.6.3...3.6.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1020-160/+125
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-104-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make sure every file ends with an empty newlineChristoph Wurst2020-04-093-3/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-092-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-0910-34/+34
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20321 from ↵Joas Schilling2020-04-081-0/+63
|\ | | | | | | | | nextcloud/enh/noid/check-translation-for-triple-dot Check for triple dots in translations in CI
| * Check for triple dots in translations in CIGary Kim2020-04-071-0/+63
| | | | | | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* | Bump handlebars from 4.7.3 to 4.7.6 in /builddependabot-preview[bot]2020-04-052-9/+24
|/ | | | | | | | Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.3 to 4.7.6. - [Release notes](https://github.com/wycats/handlebars.js/releases) - [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md) - [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.3...v4.7.6) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Merge pull request #20216 from ↵Roeland Jago Douma2020-04-032-15/+15
|\ | | | | | | | | nextcloud/dependabot/npm_and_yarn/build/karma-viewport-1.0.6 Bump karma-viewport from 1.0.5 to 1.0.6 in /build
| * Bump karma-viewport from 1.0.5 to 1.0.6 in /builddependabot-preview[bot]2020-03-292-15/+15
| | | | | | | | | | | | | | | | Bumps [karma-viewport](https://github.com/squidfunk/karma-viewport) from 1.0.5 to 1.0.6. - [Release notes](https://github.com/squidfunk/karma-viewport/releases) - [Changelog](https://github.com/squidfunk/karma-viewport/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/karma-viewport/compare/1.0.5...1.0.6) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* | Merge pull request #20209 from nextcloud/techdebt/php-cs-configRoeland Jago Douma2020-04-011-0/+2
|\ \ | | | | | | Add a shared php coding style fixer config
| * | Add shared php-cs configChristoph Wurst2020-03-311-0/+2
| |/ | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / Update the license headers for Nextcloud 19Christoph Wurst2020-03-315-2/+4
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-276-13/+0
|\ | | | | Remove unused imports