Commit Graph

1309 Commits

Author SHA1 Message Date
Karun Atreya
83971fa19a [tests-only] [full-ci] removing the setresponse in given/then step in spaces context (#7496)
* refactor given/when/then steps in spaces context

* pass the returned response without setting in then step

* added the missing when step whose response is checked by the then step

* addressed the reviews

* changed from decoded body to docoded response
2023-10-17 11:41:47 +05:45
Sabin Panta
dc3ed28696 [tests-only][full-ci] refactoring user addition to group to graphapi (#7360)
* changed user addition to group to graphapi

* addressing the review

* addressing review regarding nonexistent user

* addressing the review

* updated expected failures file

* changing code to make it pass in reva edge

* addressing review

* addressing review
2023-10-17 11:34:53 +05:45
Sawjan Gurung
de4529d6b2 add query params to the log (#7493) 2023-10-16 11:41:09 +05:45
Karun Atreya
afcdb7617d [tests-only] [full-ci] removing the setresponse in given/then step in publicwebdav context (#7439)
* refactored given steps

* refactored some when stepa

* refactored remaining when and then steps

* use of when step for the action

* changed line no in expected failure

* remove and add same kind of steps in the scenario and refactored function names

* adressing reviews
2023-10-13 16:59:43 +05:45
Sawjan Gurung
bd955f75ed [tests-only] Log requests and responses for the failing tests (#7371)
* log request-response to a file

show logs in ci

move hooks to one place

* preserve logs between suites

* ignore logs

* Refactor and beautify logs

* fix php style

* add log step in ci pipeline

* get expected-failure file from env if available
2023-10-13 13:22:27 +05:45
kobergj
5b7535c2cc Merge pull request #7460 from kobergj/SetMountpointOnAutoAccept
[full-ci] Set mountpoints when auto accepting shares
2023-10-13 09:24:56 +02:00
Prajwol Amatya
25b5b6bee1 added test coverage for previewing shared resources using spaces dav path (#7472) 2023-10-13 11:51:08 +05:45
Karun Atreya
79a4e3d500 [tests-only] [full-ci] removing the setresponse in given/then step in spacestus context (#7447)
* refactored removing setting response in given/then steps in spacetus context

* adressing reviews
2023-10-12 16:30:51 +05:45
Viktor Scharf
67cfcabe5d add test for default language (#7464) 2023-10-12 10:40:12 +02:00
jkoberg
b33dbba525 fix race condition in ocis wrapper
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-10-11 15:25:22 +02:00
Karun Atreya
903ab8e1f8 [tests-only] [full-ci] removing the setresponse in given/then step in webdav context (#7403)
* refactoring the given steps in the webdav context

* refactored remaining given/when/then steps

* return file id

* trim trailing from the folder path

* add missing when step and make other minor corrections

* set responseXml and correct status code check

* correct the naming of steps and helper functions
2023-10-11 16:15:31 +05:45
Sabin Panta
37208139f4 addressing the review (#7372) 2023-10-11 15:55:26 +05:45
Sawjan Gurung
383ad91815 [tests-only] Fix API test steps (#7457)
* add missing step defs

* fix steps

* update expected failure line
2023-10-11 15:10:02 +05:45
Sawjan Gurung
3f99d182bf [tests-only] Removed unused steps from AuthContext (#7407)
* removed unsed steps from Archiver and Auth contexts

fix methods

fix sendRequest method

fix steps

add missing step

* move steps from OCS to Auth context

add missing step

fix null

fix variable name

fix variable name

* fix password
2023-10-10 16:29:09 +05:45
Nalem7
efafb64cab [tests-only][full-ci] refactor profind response (#7327)
* refactor profind response for path checking strictly

* refactor searchResponse also for xpath checking

---------

Co-authored-by: nabim777 <“nabinalemagar019@gmail.com”>
2023-10-10 12:57:41 +05:45
Nalem7
140f756584 add test for move with fileID in project space (#7421) 2023-10-09 09:15:23 +05:45
Nalem7
1054f0d6cd add test for copy with fileID (#7398) 2023-10-09 09:14:39 +05:45
Saw-jan
c138bc68fd fix steps 2023-10-06 14:55:38 +05:45
Saw-jan
e439deaba9 strict check for successful request 2023-10-06 14:55:38 +05:45
Saw-jan
18ac0425cb add method to create folder 2023-10-06 14:55:38 +05:45
Saw-jan
b0ef3aad5f fix steps 2023-10-06 14:55:38 +05:45
Saw-jan
a63ba607f9 fix share creation methods 2023-10-06 14:55:38 +05:45
Karun Atreya
b0455f03e6 [tests-only] removing the setresponse in given/when/then step in webdavproperties context (#7368)
* refactor given and when steps in webdavproperties context

* change the status code in tests as the when step sets the response now

* correct the status code check

* only save response

* use getResponseXml to get xml response object

* fix isEtagValid method

* rename step def methods

* make stricter checks

---------

Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
2023-10-05 09:55:11 +05:45
Prarup Gurung
f72ffd014b Merge pull request #7396 from owncloud/tests/remove-unsed-steps
[tests-only] Remove AppConfigurationContext file
2023-10-04 14:52:21 +05:45
Sawjan Gurung
0bf863b451 [tests-only] Added tests with depth:infinity enabled (#7395)
* add depth infinity tests

* fix step

* add passing tests only

* format rable
2023-10-04 11:51:24 +05:45
Sagar Gurung
315b318589 [tests-only]Added test for the move with file-id in web-dav-url (#7318)
* Added test for move and rename by file-id

* Review Address
2023-10-03 16:40:58 +05:45
Saw-jan
6c3f68f8f9 fix return type 2023-10-03 16:28:35 +05:45
Saw-jan
6e43e1f0ba include capabilities context 2023-10-03 15:16:08 +05:45
Saw-jan
dd95d73e0d remove AppConfigurationContext file 2023-10-03 14:10:20 +05:45
Sawjan Gurung
c59b597984 [tests-only] Run tests with default propfind depth infinity config (#7334)
* use default config for OCDAV_ALLOW_PROPFIND_DEPTH_INFINITY

* remove unnecessary steps

* use default propfind depth infinity value

* use correct step to check the resources

* use correct step to check the resources

* cover depth:infinity enabled test cases

* fix steps

* fix scenario steps

* update expected failure list

* add depth infinity test suite to ci

* update existing tests only

* remove test with depth:infinity
2023-10-03 09:26:31 +05:45
Karun Atreya
87f1235562 [tests-only] removing the setresponse in given/when/then step in ocs and webdavlocking context (#7347)
* refactor given and when steps in ocs and webdav locking context

* use the returned response

* use of returned response from helper function

* made changes to the affected test steps

* deleted vardump line
2023-10-02 17:00:04 +05:45
amrita
0da009d180 Remove TEST_OCIS env 2023-09-29 14:58:42 +05:45
Christian Richter
f051b9ef7d Merge pull request #7355 from dragonchaser/ocis-3743-show-hide-share-status
bump reva & go-cs3apis
2023-09-27 08:48:03 +02:00
Christian Richter
b4750c4b72 Modify test-suite (upper/lowercase issues)
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Christian Richter <crichter@owncloud.com>
2023-09-26 16:37:44 +02:00
Sagar Gurung
98b4d3ef98 [tests-only][full-ci]Added test for the propfind with file-id (#7335)
* Added test for the propfind with file id

* Refactor the scenario title description

* Review address- refactor scenarios
2023-09-26 18:05:15 +05:45
Sagar Gurung
ddaa825617 Added test for the copy with file-id in url (#7308) 2023-09-26 18:04:48 +05:45
Christian Richter
d1e84281f5 Fix test suite (uppercase error strings)
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Christian Richter <crichter@owncloud.com>
2023-09-26 14:11:21 +02:00
Viktor Scharf
be9ac740c9 [test-only] apiTest. banned password list (#7339)
* apiTest. banned password list

* fix after review
2023-09-25 11:50:34 +02:00
Karun Atreya
49d9d3bd24 [tests-only][full-ci] removing the setresponse in given/then step in SettingContext and TUSContext (#7298)
* refactor given when then steps in settings and tus contexts

* set resource location from response

* addressed the reviews

* reset  spaceidfromocis

* reset after scenario using after hook
2023-09-25 13:32:42 +05:45
Karun Atreya
bea303fd87 [tests-only][full-ci] removing the setresponse in given/when/then step in Notification Context (#7324)
* refactor given steps

* refactor use of helper function in cross steps

* return using inline variable
2023-09-25 12:50:40 +05:45
Sagar Gurung
b930e0ffec [tests-only][full-ci]Added documentation to run tika service related tests (#7295)
* Added documentation to run tika service related tests

* Added documentation for docker compose as well

* Make tika service run only for tika
2023-09-25 12:49:56 +05:45
Viktor Scharf
c62d19cf32 [test-only] ApiTest. search by date (#7310)
* add search test

* comment out failed test

* deleted cases

* Delete tests/ban.txt
2023-09-21 17:17:28 +02:00
Saw-jan
d4be6a83a7 ociswrapper: break wait if server responds with 200 2023-09-21 17:00:37 +05:45
Saw-jan
3c364742c8 ociswrapper: meaningful error message 2023-09-21 17:00:37 +05:45
Saw-jan
5d64f169b3 cleanup mesh 2023-09-21 17:00:37 +05:45
Saw-jan
6e6ae38963 ociswrapper: mark server ready if the server sends any response 2023-09-21 17:00:36 +05:45
Saw-jan
2b67d0c382 ociswrapper: do not panic if the process has already finished 2023-09-21 17:00:36 +05:45
Saw-jan
3c97bc5c53 ociswrapper: retry restarting ocis if it dies 2023-09-21 17:00:36 +05:45
Roman Perekhod
2e7b423dcc Added an option to enable a password check against a Banned-Password List (#7315)
* Added an option to enable a password check against a Banned-Password-List

* Update services/frontend/README.md

Co-authored-by: Martin <github@diemattels.at>

Co-authored-by: Edith Parzefall <edith_parzefall@gmx.de>

---------

Co-authored-by: Roman Perekhod <rperekhod@owncloud.com>
Co-authored-by: Martin <github@diemattels.at>
Co-authored-by: Edith Parzefall <edith_parzefall@gmx.de>
2023-09-21 12:31:48 +02:00
Sawjan Gurung
862ad4d0f2 [full-ci][ociswrapper] Check ocis connection by requesting user info (#7293)
* check ocis connection by requesting user info

* set request-id
2023-09-21 11:27:26 +05:45