Commit graph

519 commits

Author SHA1 Message Date
Joas Schilling
049e3473b2 Allow the script to run for different git roots 2016-02-17 08:47:25 +01:00
Thomas Müller
8c90fea7ba Add script to generate coverage badges 2016-02-16 10:07:00 +01:00
Lukas Reschke
abc675d87e Move update notification code into app
Moves the update notification code in a single app. This is required since we want to use SSO for the new updater and for this have some code running in ownCloud as well (and we don't want that in core neccessarily). This app can provide that in the future, right now it's only the update notification itself. Will continue working on the SSO right away but wanted to keep the PR small.

Furthermore also makes some more code unit-testable...
2016-02-09 18:05:51 +01:00
Roeland Jago Douma
6d211f96dc Fix intergration tests 2016-02-08 11:30:48 +01:00
Roeland Jago Douma
b50edf3222 Add intergration test 2016-02-05 10:54:32 +01:00
Vincent Petry
5e08f1df78 Add comments app to expected apps in test 2016-02-02 18:16:54 +01:00
Roeland Jago Douma
d8114d6ce6 Add intergration test 2016-01-29 15:36:37 +01:00
Roeland Jago Douma
247b2ee0aa Add intergration test for shared_with me and group shares 2016-01-21 15:56:44 +01:00
Roeland Jago Douma
01aa03341a Renable intergration test 2016-01-21 15:56:44 +01:00
Vincent Petry
38cacd9405 Fix app metadata/test issues for system tags app 2016-01-20 12:26:50 +01:00
Scrutinizer Auto-Fixer
83a8e75614 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2016-01-15 12:54:26 +00:00
Roeland Jago Douma
e081c86691 Fix integration tests 2016-01-13 22:15:19 +01:00
Sergio Bertolín
acc67a6d48 Added test case about deleting a group with special characters 2016-01-13 09:49:25 +01:00
Sergio Bertolín
fb3dbe24db Added test with spcial chars in group 2016-01-13 09:49:19 +01:00
Thomas Müller
60fbab4934 We have new apps .... 2016-01-12 14:39:31 +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
114f6115c3 Skip one intergration test until we have fixed the getshares
The new sharing code handles things differently so there is no way for
create shares to handle this all properly.
2016-01-06 14:53:43 +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
Sergio Bertolin
5cca471e82 forgotten variable 2015-12-04 12:53:11 +00:00
Sergio Bertolin
48a91164e5 Controlled arguments for run script 2015-12-04 12:43:08 +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
e86c847df5 add parameter to call single behat tests 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
Thomas Müller
21e063a9e7 tail the server log and exit with the exit code of behat 2015-12-01 10:16:46 +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
094a1bc7cb Added test case about a user without a share requesting it 2015-11-26 13:19:49 +00:00
Sergio Bertolin
69a03c2e60 Added test case about trying to reshare a file with more permissions 2015-11-20 11:56:05 +00: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
ce8435530b Modified test to PUT only 1 parameter with each update 2015-11-12 10:36:17 +00: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
Lukas Reschke
f2a7888c5c Generate AUTHORS file from commits 2015-10-26 13:51:22 +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
Thomas Müller
d9ffb09479 Merge pull request #19452 from owncloud/ocs_provisioning_api_more_tests
OCS provisioning API more tests
2015-10-06 11:19:48 +02:00
Roeland Jago Douma
b0babfc847 [Intergration] Throw error if exception not thrown 2015-10-06 10:30:31 +02:00
Sergio Bertolin
6e5aae2608 added a couple of tests 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
Sergio Bertolin
fd709b4b49 Being explicit between http and ocs return codes 2015-10-06 10:30:31 +02:00
Sergio Bertolin
ac478b1910 added edit user test 2015-10-06 10:30:31 +02:00
Sergio Bertolin
0e3836ed48 Return the actual ocs return codes and check it 2015-10-06 10:30:31 +02:00
Sergio Bertolin
186aff5dea added some deletion logic 2015-10-06 10:30:31 +02:00
Sergio Bertolin
7c63a6baa6 added some deletion logic 2015-10-06 10:30:31 +02:00
Sergio Bertolin
583c082acf added some group logic 2015-10-06 10:30:31 +02:00
Morris Jobke
a0c950bf88 Update license header script to only use code changes
* ignores the first lines of a file with the license header
2015-10-05 21:15:51 +02:00
Thomas Müller
e3a98e4959 Support different server ports - defined by EXECUTOR_NUMBER 2015-09-29 13:56:56 +02:00
Sergio Bertolin
2d1f509acf added delete user test 2015-09-29 13:42:32 +02:00
Thomas Müller
933121c66f Use ci profile 2015-09-29 13:42:32 +02:00
Thomas Müller
db0a8aa795 Use fixed port for now 2015-09-29 13:42:32 +02:00
Thomas Müller
925aa6c0f5 Test user creation 2015-09-29 13:42:32 +02:00
Thomas Müller
cb6e1b115d require autoload.php 2015-09-29 13:42:32 +02:00
Thomas Müller
6749071667 Adding phpunit for the assertions 2015-09-29 13:42:32 +02:00
Thomas Müller
d26aab7e05 Adding missing files 2015-09-29 13:42:32 +02:00
Thomas Müller
631303c1e7 First integration tests for provisioning api 2015-09-29 13:42:32 +02:00
Morris Jobke
4efbf12fb8 Implement OCP Since Check for classes and interfaces 2015-07-27 10:49:45 +02:00
Vincent Petry
9d71542ee4 Update JS unit test libs
Update sinon to 1.15.4.
Update karma-jasmine to 0.3.0
Update jasmine to 2.3.4

This brings a bunch of new useful functions for unit testing.
2015-07-10 11:21:47 +02:00
Lukas Reschke
d1f0ff372e Merge pull request #17163 from owncloud/update-licenses
Update license headers
2015-06-27 20:22:23 +02:00
Morris Jobke
cdb0e62e9b [license script] sort names case insensitive 2015-06-25 11:43:07 +02:00
Lukas Reschke
08984154cd Create .htaccess
Ref https://github.com/owncloud/core/pull/16724#discussion_r33236344 – shouldn't hurt also.
2015-06-25 11:23:11 +02:00
Morris Jobke
b230b8e2c6 move the OCPSinceChecker.php to build/ 2015-06-19 11:03:09 +02:00
Thomas Müller
dbdd754c3f Further cleanup of files_encryption 2015-04-07 13:30:28 +02:00
Thomas Müller
653ad63e9b detect MIT licensed files and ignore them for now 2015-03-26 11:38:40 +01:00
Thomas Müller
b2b61bdf16 properly break after the first comment ends + allow to pass in one file/folder via commandline argument 2015-03-26 11:38:40 +01:00
Thomas Müller
1b23f1367b fixing ignorance of 'Not Committed Yet' 2015-03-26 11:38:39 +01:00
Thomas Müller
4477053818 Adding magic file to enable oci on pull request testing on ci.owncloud.org 2015-03-20 15:00:51 +01:00
Vincent Petry
2a5f6a6448 Make sure we use Jasmine 2 for running JS unit tests 2015-03-04 13:50:59 +01:00
Thomas Müller
b868914354 php script which updates the license header in all php file in the repo 2015-02-22 20:36:36 +00:00
Thomas Müller
177252af0b cleaning up the build directory 2014-12-10 10:07:22 +01:00
Morris Jobke
55b4c0ac07 Revert "Travis support"
This reverts commit 472d896ce9.

Conflicts:
	.travis.yml
2014-09-22 16:34:50 +02:00
Morris Jobke
472d896ce9 Travis support
* use PHPUnit 4.x
* force php memory limit on travis to 1024MB
* create script for travis
* whitelist branches master, stable5 and stable6 on travis (and PRs)
* sqlplus64
* conditional JS tests and ocular temporal removal
* enable scrutinizer code coverage
* move oracle to top to decrease overall test duration
2014-08-05 16:53:27 +02:00
Morris Jobke
dc36d30953 Remove all occurences of @brief and @returns from PHPDoc
* test case added to avoid adding them later
2014-05-19 17:50:53 +02:00
rnveach
e37455493b added missing packages required to run "karma" and "phantomjs" inside
"autotest-js"
2014-03-12 19:22:11 -04:00
Thomas Müller
f29bd1cb0b adding code coverage support 2014-01-21 00:57:18 +01:00
Vincent Petry
350214c609 Added Javascript unit tests
- added karma utility to run jasmine unit tests
- added Sinon library (for stubs/mocks/fakeserver)
- added a few unit tests for core and files
- added autotest-js.sh script
2014-01-16 17:12:29 +01:00
Thomas Müller
93b9bad6bb Update build.xml 2013-07-17 15:25:41 +02:00
Thomas Mueller
b4c3dd84b4 update to jquery-ui 1.10.0 2013-01-23 11:37:52 +01:00
Thomas Mueller
03f4250ce6 Migration of build files from Jenkins 2012-12-15 21:03:32 +01:00