Commit Graph

258 Commits

Author SHA1 Message Date
Sergio Bertolin 02de82df91
Fixed failing problems
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-22 12:49:49 +01:00
Sergio Bertolin b78dcae1d4
WIP commit, adding report support
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-22 12:49:39 +01:00
Lukas Reschke 591b60d11c Merge pull request #2758 from nextcloud/only-one-dav-backend
Register only one dav backend
2016-12-21 13:03:48 +01:00
Vincent Petry 322b8ba138
Fix finding transferred folder in integration tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-19 17:41:11 +01:00
Vincent Petry 734e55da95
Add test for duplicate 401 headers on DAV
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-19 15:47:25 +01:00
Vincent Petry 55bf9e3f71
Add transfer ownership integration tests (#26543)
* Add transfer ownership integration tests

* Added more transfer ownership tests and OCC checks

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-19 14:10:12 +01:00
Vincent Petry 553883a1f4
Add integration test for creating folder with colon
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-16 18:16:35 +01:00
Lukas Reschke 8a00638425
Don't set Content-Disposition header if one already exists
If a Content-Disposition header is already set by another plugin we don't need to set another one as this breaks clients.

Fixes https://github.com/nextcloud/server/issues/1992

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-14 17:35:27 +01:00
Roeland Jago Douma 4630ff536e
Add intergration tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-12-02 13:17:53 +01:00
Morris Jobke 951f7f5eaf
Add integration test for web based installer
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-11-21 22:00:16 +01:00
Roeland Jago Douma d5665eb93b
Add sleep function
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-11-04 11:20:33 +01:00
Roeland Jago Douma bcd7a9a034
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-11-04 08:44:35 +01:00
Morris Jobke db65bc6fff
Remove unneeded behat method
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-11-02 22:51:13 +01:00
Sergio Bertolin a642a40f3f
Adapted favorites and dav2 features
Adapted sharing and external features, random failures in sharing:857

Added weddav related feature

Removed forgotten leftovers
2016-11-02 22:49:44 +01:00
Sergio Bertolin 7d9e031abe
Changed description of variable 2016-11-02 08:49:58 +01:00
Sergio Bertolin a3c3ec9dd7
Added functions to check etag of elements 2016-11-02 08:49:57 +01:00
Sergio Bertolín 0417cbafd0
Changed request to not add a prefix to the url (#26256)
* Changed request to not add a prefix to the url

* Expecting forbidden instead of service unavailable

* Handling login exceptions
2016-10-20 17:21:08 +02:00
Sergio Bertolín 01393592eb
Adding type parameter because behat cannot ignore it
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-10-06 13:57:58 +02:00
Sergio Bertolín 7744cb5240
Orphaned shares test and some requirements
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-10-06 13:57:54 +02:00
Sergio Bertolin 09a90b4000
User was incorrect
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-10-05 08:19:43 +02:00
Sergio Bertolín d81f4ea53c
Modifications to avoid old dav path
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-10-05 08:19:43 +02:00
Sergio Bertolin e011065a08
Added quota calculation test when a file is recieved
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-10-02 21:16:50 +02:00
Sergio Bertolin 7413e2a88c
Added test checking quota after usage
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-10-02 21:16:49 +02:00
Joas Schilling a1e4b17ff4
Remove unused endpoint
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-09-30 10:21:08 +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
Roeland Jago Douma 19ecacd57e
Add basic osc intergration tests 2016-09-07 13:04:21 +02:00
Sergio Bertolín 81c18f5aa7
Creating the folder when the tests run 2016-08-30 17:23:56 +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 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
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 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
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
Joas Schilling 0215b004da
Update with robin 2016-07-21 18:13:58 +02:00
Lukas Reschke b32b296ed7 Add integration tests 2016-06-30 12:21:01 +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
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 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
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
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 68a92d36ec Use baseUrl as provided 2016-04-12 14:42:29 +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 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 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 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 Bertolín 44da5fe1ab Adding new tests for federation sharing 2016-03-11 08:49:26 +00: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
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
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
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
Lukas Reschke 5780ba611e Add integration test for CSRF protection on DAV
This adds the integration tests for the CSRF protection on the DAV backend introduced with 9.0.

Fixes https://github.com/owncloud/core/issues/22598
2016-02-25 17:54:27 +01:00
Lukas Reschke fc2c5fe414 Add header for attachment disposition only once
Recent refactorings have resulted in the header being added twice, this makes browsers ignore the header which removes any security gains.

This changeset adds the header only once and adds integration tests ensuring the correct header in future.

https://github.com/owncloud/core/issues/22577
2016-02-23 12:23:41 +01:00
Lukas Reschke c13259cf9e Add integration tests for tags 2016-02-19 20:45:20 +01:00
Lukas Reschke 16be9af20a Add integration tests for comments
This adds integration tests for the comments. Especially with regard to the permission handling, didn't find any problem in it.

Fixes https://github.com/owncloud/core/issues/22367
2016-02-19 18:08:34 +01:00
Thomas Müller 6a796ff3cc Merge pull request #21066 from owncloud/behat_capabilities_changing_server_configuration
Added new capabilities test with changes in server configuration
2016-01-07 17:07:29 +01:00
Roeland Jago Douma 0f6d55063d Make sure to login at least once for the intergration tests
Else we run into race conditions with the skeleton code
2016-01-06 14:53:43 +01:00
Joas Schilling 671b06a86b Deduplicate the array 2015-12-11 16:25:35 +01:00
Joas Schilling 1959171d5d Speed up the tests by reseting the configs and app only when needed 2015-12-11 16:25:35 +01:00
Sergio Bertolin 17fcd84ee3 Prepare logic to handle nested elements and add pending test cases 2015-12-11 16:20:04 +01:00
Sergio Bertolin 5b895335df Added tests disabling options using testing app 2015-12-11 16:20:04 +01:00
Joas Schilling 7d3e40c065 Add an OCS app for testing instead of using sudo and exec 2015-12-11 16:20:04 +01:00
Sergio Bertolin 0449dc387b Added functionality to change server configuration 2015-12-11 16:20:04 +01:00
Sergio Bertolin 4338a741f2 Added functionality for changing server configuration 2015-12-11 16:20:04 +01:00
Scrutinizer Auto-Fixer ffc49a24f0 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-12-10 16:43:37 +01:00
Sergio Bertolin 93f4524a91 Added check for /textfile0.txt 2015-12-10 08:10:23 +00:00
Roeland Jago Douma 1d7a2aa9f9 Folder depth needs to be at least 3 for all tests to pass 2015-12-10 08:10:23 +00:00
Sergio Bertolin e72955c65d Added shared by multiple channels test
* Small changes plus check of the file using propfind
* Restaured line removed accidentally
2015-12-10 08:10:23 +00:00
Thomas Müller 7d99289ced Merge pull request #20907 from owncloud/integration_tests_for_capabilities
Added capabilities context and tests
2015-12-03 16:54:36 +01:00
Sergio Bertolin c744b30b3b Changed fail for assertEquals and removed fields which weren't checked 2015-12-03 12:54:44 +00:00
Sergio Bertolin b17553d921 Added test case about downloading by range a public shared file 2015-12-03 10:58:31 +01:00
Sergio Bertolin e01e894b98 Added capabilities context and tests 2015-12-02 17:29:42 +00:00
Morris Jobke 6baed0c998 fix code style 2015-12-01 14:51:33 +01:00
Morris Jobke 83432b3c25 add behat tests for 0 quota upload failure 2015-12-01 14:51:32 +01:00
Sergio Bertolin 2c6e0da8f5 Change from with of 2015-11-30 14:49:35 +00:00
Sergio Bertolin 69ca3a70d6 Added webdav test to check range downloads 2015-11-30 14:07:02 +00:00
Sergio Bertolin 52f6592991 Making propfinds, having depth in mind and checking it in gherkin description 2015-11-30 12:20:05 +00:00
Vincent Petry 40172e252b Use depth 1 and valid properties to get a list 2015-11-27 15:38:45 +01:00
Sergio Bertolin b99bd7f4fc Added sabre dav in webdav, modified skeleton to have parent and child folders 2015-11-27 12:55:48 +00:00
Sergio Bertolin 9d44576819 Restructured FeatureContext to reuse some parts and run two servers in parallel 2015-11-26 17:03:17 +01:00
Sergio Bertolin a2938385f9 Making webdav path configurable 2015-11-20 11:26:52 +00:00
Sergio Bertolin dd10e1d538 modified makedavrequest to return response 2015-11-20 09:17:48 +00:00
Sergio Bertolin ee4a18a16c added test about resharing 2015-11-19 14:17:56 +00:00
Sergio Bertolin 81e0a3ea22 Added test and logic for deleting all group shares 2015-11-19 12:45:13 +00:00
Sergio Bertolin 630ba2fd09 Added test for shared_with_me parameter 2015-11-19 12:45:12 +00:00
Sergio Bertolin a990e0ac1d Added some requirements for first test case 2015-11-19 12:45:12 +00:00
Joas Schilling 90b020cf88 Delete when it is a directory... 2015-11-18 12:53:36 +01:00
Joas Schilling fbcdf17089 Fix doc blocks 2015-11-18 12:53:20 +01:00
Sergio Bertolin eb6a13c231 Added a test including all the fields of the share update and checking output 2015-11-11 17:29:38 +00:00
Sergio Bertolin 7aeda7c99a Added a test and logic for checking answer of public shares 2015-11-11 14:21:10 +00:00
Sergio Bertolin 7aa6e9b643 Added test to get info of a specific share id
Check fields of the share response

Added missing fields to check if their values are numbers
2015-11-10 16:25:34 +01:00
Sergio Bertolin e34872141e Added tests about getting shares of a file and a test for deleting a user from a group which doesn't exist 2015-11-06 11:57:02 +01:00
Sergio Bertolin 1a51d4c4c7 Added changes in the verification of sharing get responses 2015-11-05 09:10:46 +00:00
Sergio Bertolin 3b7690f842 added test for deleting a share 2015-11-04 13:42:14 +00:00
Sergio Bertolin 0593381522 Added general function to create shares in preconditions. 2015-11-04 12:16:00 +00:00
Sergio Bertolin 0f27b719ea enhancements to pre and post conditions 2015-11-03 16:08:01 +00:00
Thomas Müller fcc2a0c830 Upgrade behat to 3.0.x and use @BeforeScenario and @AfterScenario to clean up users 2015-10-29 17:10:52 +01:00
Sergio Bertolin d11b69bfb9 added sharing feature file
added logic necessary for preconditions and postconditions of sharing tests

Added sharing by link tests and sharing with group

Added test which reproduces issue 19950 (adding expiration date)

refactored given and then statements to be preconditions and not operations
2015-10-29 17:10:49 +01:00
Sergio Bertolin 64ea35af05 added tests for apps 2015-10-22 13:28:48 +00:00
Sergio Bertolin 5e9dc381b4 added test for getting users of a group being subadmin 2015-10-22 12:15:51 +00:00
Sergio Bertolin 5703483e99 using canonize in assertEquals for arrays 2015-10-21 10:19:20 +00:00
Sergio Bertolin 488728a0fa Added more tests and fixed a problem with asort which was returning false positives 2015-10-20 12:49:51 +02:00
Morris Jobke d78f6852c7 Fix whitespace issues in integration tests 2015-10-08 16:21:31 +02:00
Sergio Bertolin 8f91426e0a changing indentation, vertical elements and previous existance of users and groups 2015-10-07 11:09:01 +00:00
Sergio Bertolin 957d60cd0a ordering arrays before comparing 2015-10-07 09:24:12 +00:00
Sergio Bertolin 1b0e128b44 checking users and groups 2015-10-07 09:03:00 +00:00
Sergio Bertolin bb9f568654 lists getting ready 2015-10-06 16:37:55 +00:00
Roeland Jago Douma b0babfc847 [Intergration] Throw error if exception not thrown 2015-10-06 10:30:31 +02:00
Sergio Bertolin 0c1a657282 restored assertions in existance of users and groups 2015-10-06 10:30:31 +02:00