Commit Graph

380 Commits

Author SHA1 Message Date
Lukas Reschke 0e74aaefe7
Rely solely on GitHub API output
This doesn't download the whole git repository again which saves roughly 90 seconds in execution time on the test.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-09-22 11:40:00 +02:00
Lukas Reschke f9a4bb94f6
Add checker for signed off commits
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-09-22 09:08:21 +02:00
Roeland Jago Douma e392f669c0
Make OCS intergration tests check for CSP
* Very hacky in simple test but at least we test
2016-09-15 13:11:36 +02:00
Thomas Müller aa10231027
$this->blackListedClassNames is unknown 2016-09-07 22:09:08 +02:00
Roeland Jago Douma 19ecacd57e
Add basic osc intergration tests 2016-09-07 13:04:21 +02:00
Roeland Jago Douma 581a83c2a1
Fix AppTest and intergration test 2016-09-05 09:42:58 +02:00
Lukas Reschke 84c742b95e
Use "testing" instead of "user_ldap" as test app 2016-08-31 10:40:17 +02:00
Sergio Bertolín 81c18f5aa7
Creating the folder when the tests run 2016-08-30 17:23:56 +02:00
Sergio Bertolín 86cfcde5e9
Changed enabled/disabled app in provisioning api tests 2016-08-30 17:23:49 +02:00
Sergio Bertolín 7106129baa
External storage was not enabled and content was not deleted before scenarios 2016-08-30 17:23:26 +02:00
Sergio Bertolín 3a5d29fb59
Added local_storage folder 2016-08-30 17:23:22 +02:00
Sergio Bertolin b7b0f4780c
Run as current user 2016-08-30 17:23:18 +02:00
Sergio Bertolin b154c8fa39
Removed extra context added needed option and remove storage after external storage scenarios 2016-08-30 17:23:13 +02:00
Sergio Bertolin 85f00e2c01
Added feature and context, not working yet, option to allow sharing needs to be added 2016-08-30 17:23:08 +02:00
Sergio Bertolin f72fea8d0e
Modified run.sh to mount a local storage 2016-08-30 17:23:04 +02:00
Sergio Bertolin c16b15d52e Added integration test 2016-08-29 14:13:26 +02:00
Joas Schilling 28c8469ade
Make sure to also detect their new copy right line
Ref owncloud/core#25518
2016-08-18 10:59:59 +02:00
Lukas Reschke 7cd4874112 Merge pull request #895 from nextcloud/autoloader_checker
Autoloader checker
2016-08-17 16:27:14 +02:00
Joas Schilling 027069cbae Merge pull request #846 from nextcloud/provisioning_api_ocs
Move Provisioning API to the AppFramework
2016-08-17 10:23:13 +02:00
Roeland Jago Douma b6fc62aeb2
Add autoload checker 2016-08-17 08:47:59 +02:00
Roeland Jago Douma b5f61ba0e2
If there is no copyright notice print comment line 2016-08-15 14:51:09 +02:00
Roeland Jago Douma 08a71b176f
Do not licence composer stuff 2016-08-15 14:42:39 +02:00
Roeland Jago Douma 77542817d1
Fix intergration tests
* Set OCS-APIREQUEST: true
* PUT requires a body
2016-08-14 18:34:07 +02:00
Roeland Jago Douma e7b515582a
Fix intergration test for admin_audit 2016-08-08 16:47:10 +02:00
Lukas Reschke 70eef2a82e Merge pull request #445 from nextcloud/ocs_share_to_appframework
OCS Share API to appframework
2016-08-08 14:59:59 +02:00
Roeland Jago Douma 774ff433d7
Disbale failing intergration test for now
I have not been able to reproduce this failure locally yet.
But it seems to happen often on CI.
So disable for now.
2016-08-05 15:29:10 +02:00
Roeland Jago Douma dd9f195afd
Add OCS-APIREQUEST header to intergration test calls 2016-08-05 14:17:32 +02:00
Vincent Petry 6d8d5f7bc5
Add integration tests for double shares with rename in between 2016-08-03 10:16:28 +02:00
Vincent Petry 573f6de6a0
Add integration tests for merging received shares 2016-08-03 10:16:28 +02:00
Roeland Jago Douma 1088870eb1
Add intergration test 2016-08-02 11:12:52 +02:00
Björn Schießle 6cf7bf111e Merge pull request #648 from nextcloud/add-quotaplugin-v2-master
[upstream] Adding quota plugin to new dav endpoint
2016-07-29 11:44:34 +02:00
Thomas Müller 6f34c37cfb
Adding quota plugin to new dav endpoint (#25615)
* Adding quota plugin to new dav endpoint

* Added integrated test failing in old endpoint

* Added 0B quota test
2016-07-29 10:03:46 +02:00
Morris Jobke 0529caee7c
Add some integration test fixes 2016-07-29 08:55:56 +02:00
enoch85 b7ce4e1686 ownCloud --> Nextcloud 2016-07-28 20:50:23 +02:00
Joas Schilling 96d466475c
Add app to provisioning output 2016-07-26 16:39:04 +02:00
Roeland Jago Douma 67ce87dca7
Fix intergration tests 2016-07-22 13:37:32 +02:00
Morris Jobke 363ca21085 Merge pull request #505 from nextcloud/fix-license-script
Fix the license script
2016-07-21 23:48:31 +02:00
Joas Schilling 0215b004da
Update with robin 2016-07-21 18:13:58 +02:00
Bjoern Schiessle b64c6d6993
only search the license header for @copyright statements 2016-07-21 18:06:31 +02:00
Joas Schilling c98de829c4
Fix the license script 2016-07-21 18:06:31 +02:00
Lukas Reschke ba4f12baa0
Implement brute force protection
Class Throttler implements the bruteforce protection for security actions in
Nextcloud.

It is working by logging invalid login attempts to the database and slowing
down all login attempts from the same subnet. The max delay is 30 seconds and
the starting delay are 200 milliseconds. (after the first failed login)
2016-07-20 22:08:56 +02:00
Lukas Reschke 813b58ab94 Merge pull request #398 from nextcloud/issue-388-fix-hidden-file-list-master
Fix hidden file list master
2016-07-14 15:37:42 +02:00
Joas Schilling 268e65730a
Add a new integration test for CREATE only shares 2016-07-14 14:33:28 +02:00
Joas Schilling f72f819086
Make sure the update was successful 2016-07-14 14:32:51 +02:00
Bjoern Schiessle 762d76f0c3
- keep copyright notice and only update the authors list
- check if all changes to a file happened after the fork, this allows the authors to check if the file can be relicensed to AGPLv3 or later
2016-07-13 20:31:16 +02:00
Morris Jobke ba16fd0d33 Merge branch 'master' into sync-master 2016-07-07 11:29:46 +02:00
Vincent Petry 17297d4db1 Add integration test for sharing with group, then user in group
Add integration test for the use case where a group share exists and
then the same owner creates a direct share to a user in that group.
2016-07-05 11:16:39 +02:00
Thomas Pulzer 90b7f74da7 Changed name of default logfile from owncloud.log to nextcloud.log. 2016-07-04 11:50:32 +02:00
Lukas Reschke b32b296ed7 Add integration tests 2016-06-30 12:21:01 +02:00
Morris Jobke b6397ef73a Merge pull request #236 from nextcloud/master-sync-upstream
[Master] sync upstream
2016-06-28 09:02:03 +02:00
Lukas Reschke 6670d37658 Merge remote-tracking branch 'upstream/master' into master-sync-upstream 2016-06-27 18:23:00 +02:00
Lukas Reschke b7e91c5c3a Adjust integration test
The app is now enabled by default
2016-06-27 10:26:23 +02:00
Vincent Petry 955635c7aa Add explicit delete permission to link shares
Link shares always allowed deletion, however internally the permissions
were stored as 7 which lacked delete permissions. This created an
inconsistency in the Webdav permissions.

This fix makes sure we include delete permissions in the share
permissions, which now become 15.

In case a client is still passing 7 for legacy reasons, it gets
converted automatically to 15.
2016-06-24 09:48:48 +02:00
Lukas Reschke 2b493e2f9d
Merge remote-tracking branch 'upstream/master' into master-sync-upstream 2016-06-21 11:18:22 +02:00
Sergio Bertolín 491e2654eb Added test with new endpoint (#23934)
* Added test with new endpoint

* Moved all scenarios using new dav endpoint to a new feature file

* Removed extra slash in welcome.txt

* some fixes

* Incorrect user while downloading with range

* Fixed Content-disposition
2016-06-17 14:10:43 +02:00
Sergio Bertolín 19b7ae673a
Added unfavoriting tests and some rewording 2016-06-15 14:21:59 +02:00
Sergio Bertolín 4232458652
Fixing the tests 2016-06-15 14:21:59 +02:00
David Toledo 39a56c7bc1
Added favorites integration tests 2016-06-15 14:21:59 +02:00
Morris Jobke 553bd71c9b
fix integration tests for new admin_audit app 2016-06-14 16:33:24 +02:00
Morris Jobke 859ca1f9bb
Add integration tests 2016-06-14 16:03:59 +02:00
Thomas Müller d0a2515e2b Us an explicit version of sabre/dav to allow caching on the jenkins slaves - fixes #25087 (#25088) 2016-06-14 09:53:30 +02:00
Arthur Schiwon ae02685e6f
Merge branch 'master' of https://github.com/owncloud/core into downstream-160614 2016-06-14 01:06:25 +02:00
Morris Jobke c64c723027
Use proper PhantomJS library and run the tests as separate step
* add dependency for phantomjs
2016-06-13 14:04:25 +02:00
Stefan Weil f7c41fa4e6 Fix typo (found by codespell) (#25073)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-06-13 08:23:33 +02:00
Arthur Schiwon 42c66efea5
Merge branch 'master' of https://github.com/owncloud/core into downstream-160611 2016-06-11 15:34:43 +02:00
Arthur Schiwon a636e4ff28
Downstream 2016-06-09
Merge branch 'master' of https://github.com/owncloud/core into downstream-160609
2016-06-09 18:45:12 +02:00
blizzz 51fd2602a7 Revert "Downstream 2016-06-08" 2016-06-09 17:41:57 +02:00
Vincent Petry 1399e87d57
DAV now returns file name with Content-Disposition header
Fixes issue where Chrome would append ".txt" to XML files when
downloaded in the web UI
2016-06-09 15:51:41 +02:00
Sergio Bertolin 44f72412bf
Get a range from several chunks 2016-06-09 13:50:28 +02:00
Sergio Bertolin 8de206c7ed
Added another case about overwriting folder using old chunking 2016-06-09 13:50:28 +02:00
Sergio Bertolin 57444b045b
Added same test using old chunking 2016-06-09 13:50:28 +02:00
Sergio Bertolin a2c7b2e4b7
userUploadsChunkFileOfWithToWithChecksum has chunking-42 hardcoded 2016-06-09 13:50:28 +02:00
Sergio Bertolin dbaeedc234
add overwriting using chunking but failing 2016-06-09 13:50:28 +02:00
Sergio Bertolin 91082578ab
Added tests about overwriting files and folders as recipient 2016-06-09 13:50:28 +02:00
Bjoern Schiessle a41c579f63
no more CLA and switch to AGPLv3 or later 2016-06-06 19:18:24 +02:00
Sergio Bertolin 118050dcd0
Get a range from several chunks 2016-05-31 10:41:38 +02:00
Sergio Bertolin a7167409e7
Added another case about overwriting folder using old chunking 2016-05-31 10:41:38 +02:00
Sergio Bertolin dc05f979c2
Added same test using old chunking 2016-05-31 10:41:38 +02:00
Sergio Bertolin f2bf75d3b7
userUploadsChunkFileOfWithToWithChecksum has chunking-42 hardcoded 2016-05-31 10:41:38 +02:00
Sergio Bertolin a626aa21b1
add overwriting using chunking but failing 2016-05-31 10:41:38 +02:00
Sergio Bertolin c6a5a43009
Added tests about overwriting files and folders as recipient 2016-05-31 10:41:38 +02:00
Vincent Petry d288eb062e
Update integration tests for system tags with groups 2016-05-20 17:56:02 +02:00
Christoph Wurst 46bdf6ea2b
fix PHPDoc and other minor issues 2016-05-11 13:36:46 +02:00
Christoph Wurst bfed02b038
add auth integration tests 2016-05-11 13:36:46 +02:00
Christoph Wurst aa85edd224
increase token column width
add some range to time() assertions
2016-05-11 13:36:46 +02:00
Sergio Bertolin 661ab1a8c5
Modified expected output according to rullzer 2016-05-02 09:31:22 +02:00
Sergio Bertolín 271ba6da63
Added integration tests directly in the code PR 2016-05-02 09:31:22 +02:00
Thomas Müller 0eed6b5189
Integration test for a disabled user 2016-05-02 09:31:22 +02:00
Roeland Jago Douma 27c9d8a690
Not logged in is original calculated target 2016-04-30 10:40:45 +02:00
Thomas Müller 2ab4b1ce04 Merge pull request #23942 from owncloud/fix-behat
Use baseUrl as provided
2016-04-27 10:01:32 +02:00
Lukas Reschke 2625d8fc71 Merge pull request #23978 from owncloud/integration-test-remaining-from-qa-26
Added test case about downloading a file inside a folder with range
2016-04-16 23:34:53 +02:00
Lukas Reschke e2946f7b80 Merge pull request #24030 from owncloud/integration-tests-improved-resharing
Added test case for QA-94
2016-04-16 23:28:28 +02:00
Lukas Reschke 95e62180ce Merge pull request #23939 from owncloud/stricter-csp-for-dav-backend
Employ a stricter Content Security Policy on remote.php
2016-04-16 23:15:23 +02:00
Sergio Bertolin 5b34dcc099 Added test case for QA-94 2016-04-15 13:12:34 +00:00
Roeland Jago Douma 0cebb16e7c
Move share-permissions property namespace
Fixes https://github.com/owncloud/core/issues/23741
2016-04-15 10:22:18 +02:00
Roeland Douma 411fac892a On mount make sure multiple shares with same target map to unique ones (#23937)
Scenario:
user0 shares a folder 'foo' with user2
user1 shares a folder 'foo' with user2
user2 logs in

Before: show only the 'foo' from user1

After: show both.

* Added intergration tests
2016-04-14 11:50:27 +02:00
Sergio Bertolin ab40ec6494 Added test case about downloading a file inside a folder with range 2016-04-13 14:43:55 +00:00
Thomas Müller 3c0a1d4241 Merge pull request #20118 from owncloud/chunked-upload-dav
Initial implementation of the new chunked upload
2016-04-13 14:37:10 +02:00
Björn Schießle 499d131a09
always return the complete permissions the file was shared with 2016-04-12 17:56:56 +02:00
Thomas Müller 68a92d36ec Use baseUrl as provided 2016-04-12 14:42:29 +02:00
Lukas Reschke 0cba1ba7f9
Employ a stricter Content Security Policy on remote.php
Items sent by remote.php have not to be interpreted by browsers in any way.
2016-04-12 13:30:37 +02:00
Roeland Jago Douma 629bc1812e Add intergration tests for new chunking
The same intergration tests as for the old endpoint.
But now using the new chunking.

We upload 3 chunks in different order and the result should be the same
in all three.
2016-04-12 12:33:05 +02:00
Roeland Jago Douma ab034f0593 Add intergration tests 2016-04-04 19:35:01 +02:00
Roeland Jago Douma 8c0ef4c4bd Add sharePermissions webdav property
This property can be queries by the clients so they know the max
permissions they can use to share a file with. This will improve the UX.

The oc:permissions proptery is not enough since mountpoints have
different permissions (delete + move by default).

By making it a new property the clients can just request it. On older
servers it will just return a 404 for that property (and thus they know
they have to fall back to their hacky work arounds). But if the property
is returned the client can show proper info.

* unit tests
* intergration test
2016-03-31 20:12:34 +02:00
Roeland Jago Douma 6719f8ca60 Add intergration tests
* Only for sharees right now
* Sharing intergration tests fail due to the test setup we have right
  now
2016-03-22 17:13:34 +01:00
Roeland Jago Douma 85f363ba2c Add intergration tests
Intergration tests to ensure the share-types property is set correctly.

* Unshared item
* Shared with user
* Shared with group
* Shared by link
* Shared with user & group & link
2016-03-17 16:54:54 +01:00
Thomas Müller 8b5a1bbe3e Merge pull request #23258 from owncloud/sharee-tests
Add integration tests for sharee endpoint
2016-03-16 21:54:20 +01:00
Joas Schilling cb56dfec6b Split the context so we don't reset the config on each test 2016-03-15 14:53:16 +01:00
Joas Schilling c4b0a1cdfd Add tests for user enumeration and sharing in group only 2016-03-15 14:24:51 +01:00
Joas Schilling 4e9c3b3d64 Always use the admin when putting poeple in a group 2016-03-15 14:24:21 +01:00
Joas Schilling 8eb9638490 Make the app config code ready for reuse 2016-03-15 14:23:41 +01:00
Joas Schilling 928138f11c Deduplicate the existing background 2016-03-14 17:16:09 +01:00
Joas Schilling f62a7b2447 Only match LOCAL and REMOTE as servers, correctly make use of the sharer server from the command 2016-03-14 10:55:52 +01:00
Thomas Müller 101e446577 Merge pull request #23091 from owncloud/issue-23085-csae-insensitive-group-search
Return the correct group casing in sharee api
2016-03-13 19:51:07 +01:00
Thomas Müller c874ebf425 Merge pull request #23141 from owncloud/behat-code-style
Fix all the yellow, orange and red errors in integration tests
2016-03-11 14:56:44 +01:00
Joas Schilling 722188e503 Add integration tests for the "anti user iteration" 2016-03-11 14:15:09 +01:00
Joas Schilling ab39be1d11 Add integration tests for sharee API 2016-03-11 14:08:12 +01:00
Joas Schilling 6d80efc2a4 Fix WebDav 2016-03-11 13:59:20 +01:00
Joas Schilling 6ff3d23b24 Fix docs of Tags 2016-03-11 13:59:19 +01:00
Joas Schilling 957a13d879 Remove unnecessary imports 2016-03-11 13:59:19 +01:00
Joas Schilling d78357c210 Fix comments 2016-03-11 13:59:19 +01:00
Joas Schilling c604046e3e Fix checksumsContext 2016-03-11 13:59:19 +01:00
Joas Schilling 2faf520504 Fix issues in CardDav 2016-03-11 13:59:19 +01:00
Joas Schilling b4affa4d27 Add docs for CalDavContext 2016-03-11 13:59:19 +01:00
Joas Schilling 0f214017d2 Docs for BasicStructure 2016-03-11 13:59:19 +01:00
Joas Schilling 6381c22a7d Remove trailing spaces 2016-03-11 13:59:19 +01:00
Joas Schilling cdc5470f7e Fix the use of traits 2016-03-11 13:59:19 +01:00
Joas Schilling 26e974d859 Fix inheritance of members 2016-03-11 13:59:19 +01:00
Joas Schilling 62b77d8ed0 API version needs to be on basic because we use it there 2016-03-11 13:59:19 +01:00
Joas Schilling 5f7502de6c Fix type in class name 2016-03-11 13:59:19 +01:00
Joas Schilling 95a7518653 Remove hardcoded api versions 2016-03-11 13:59:19 +01:00
Joas Schilling 985b11876f asCreatingAShareWith has no return 2016-03-11 13:59:18 +01:00
Joas Schilling 9be7f4d19d Fix docs 2016-03-11 13:59:18 +01:00
Sergio Bertolin c153a27ce5 Change resharing to local instead of remote because of a deadlock 2016-03-11 08:49:26 +00:00
Sergio Bertolín 44da5fe1ab Adding new tests for federation sharing 2016-03-11 08:49:26 +00:00
Roeland Jago Douma ca2a24d286 Add intergration tests 2016-03-10 20:12:58 +01:00
Thomas Müller 0cc53ee06d Merge pull request #22602 from owncloud/fix_slow_chunkcheck
Do not check all chunks of a chunked upload if we do not need to
2016-03-09 15:06:44 +01:00
Roeland Jago Douma 0b4ff1a9e3 Fix capabilities intergration tests
Split the array element selection and the member selection.
2016-03-08 15:13:15 +01:00
Roeland Jago Douma 7301b43eb6 Added tests
* Unit tests for OC_Filechunking to verify the isComplete function
* Intergration tests to show that shuffling chunks is all fine
2016-03-07 21:20:13 +01:00
Lukas Reschke 947720b800 Adjust OCS test 2016-03-04 18:00:23 +01:00
Lukas Reschke 3067367ff3 Add new apps 2016-03-01 17:52:32 +01:00
Lukas Reschke c353d51810 Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +01:00
Roeland Jago Douma 03d0fa012f Checksum intergration test
* Upload file with checksum
* Chunked upload with checksum
* Copy file with checksum should also copy the checksum
* Moving a file with checksum should also move the checksum
* Uploading a file with checksum and overwriting it with a file without cheksum should remove the checksum
2016-03-01 11:37:16 +01:00
Thomas Müller 1652541150 Merge pull request #22700 from owncloud/only_1_linkshare
For now only allow 1 link share per file/folder
2016-03-01 09:22:39 +01:00
Thomas Müller 25a4571dcd Merge pull request #22731 from owncloud/hide-nodes-from-listening
Hides nodes from listing that the user has no access to
2016-03-01 09:22:08 +01:00
Thomas Müller fd4742d430 Merge pull request #22613 from owncloud/quota-changedavreturnvaluewhennoquotaset
Don't return quota when none set
2016-03-01 08:30:58 +01:00
Roeland Jago Douma 0dd0adf69f Intergration tests 2016-03-01 08:29:15 +01:00
Lukas Reschke d04edfaf0d Hides nodes from listing that the user has no access to 2016-02-29 20:53:38 +01:00
Roeland Jago Douma 8924b0a0dc Check correct permissions when resharing
Fixes #22675

Since we only get a share id we do not know the path for the sharer.
Now if we edit a share we start searching for shares for that user of
that node. And deduce the permissions that way.

* Intergration test added
* Fix unit tests
2016-02-29 19:30:14 +01:00
Vincent Petry 11215f4e27 Return -3 for unlimited quota
Returns -3 for unlimited quota in Webdav response.
Also adjusted personal page to show unlimited quota when set.
2016-02-29 14:36:20 +01:00