Commit Graph

205 Commits

Author SHA1 Message Date
nirajacharya2
8556318809 removing usage of a stepdefination inside another stepdefination in WebDavPropertiesContext (#8745) 2024-04-17 16:50:33 +05:45
Prajwol Amatya
5d06d5dce5 added test to check id from shareWithMe and PROPFIND response (#8767) 2024-04-05 09:06:04 +05:45
Viktor Scharf
65b48d3460 [test-only] update share without permission (#8748)
* update share without permission

* Update resharing.feature

* Update resharing.feature
2024-03-28 10:15:13 +01:00
Prarup Gurung
b36043488c Added PROPFIND tests as sharee with new davpath 2024-03-19 15:06:25 +05:45
Prarup Gurung
c52c3e9db7 Addressed reviews 2024-03-15 14:18:33 +05:45
Prarup Gurung
18f156c880 Separated step implementation 2024-03-14 11:57:23 +05:45
Prarup Gurung
d48ea766ea Refactored step to use depth for propfind 2024-03-13 15:00:47 +05:45
Prarup Gurung
bc2410900a Added tests for PROPFIND as sharee 2024-03-12 15:45:33 +05:45
Viktor Scharf
5a89c3605f [test-only] share items with share permission if resharing is disabled (#8461)
* share item with share permission if resharing is disabled

* php style fix

* change error message
2024-02-21 11:14:58 +01:00
Sawjan Gurung
0df64c26cd [tests-only] fix MOVE with another user dav path scenarios (#8460)
* test(api): fix MOVE with another user dav path scenarios

* test(api): fix php code style

* test(api): fix dav paths

* test(api): fix dav paths
2024-02-19 15:46:34 +05:45
Sawjan Gurung
9e7a9bab9a [tests-only] add API test coverage for file MOVE to space-id as destination (#8459) 2024-02-15 21:26:17 +05:45
Sawjan Gurung
c7b50b4540 [tests-only] add API test coverage for trying to search with invalid pattern (#8441)
* test(api): test coverage for invalid search pattern

* test(api): fix typo
2024-02-14 10:44:04 +05:45
Prajwol Amatya
95b6190ff0 [tests-only][full-ci] added test to share a disabled project space (#8319)
* added test to share a disabled project space

* added test to share deleted project space
2024-01-31 16:26:29 +05:45
Viktor Scharf
ee6f155e1c add more CORS tests (#8254) 2024-01-24 19:25:20 +01:00
Saw-jan
a7ab682f17 fix php code 2024-01-23 12:42:47 +05:45
Saw-jan
e1101940dc fix cors tests 2024-01-23 12:40:13 +05:45
Sawjan Gurung
f779ee63c3 [tests-only] Extend API test coverage for MOVE between spaces using file-id (#8126)
* add issue tags

* extend API test coverage for MOVE between spaces using file-id

* fix table header

* re-arrange scenarios

* update expected failure

* update expected failure
2024-01-04 18:00:04 +05:45
Prajwol Amatya
12f416a18e add tests for search files using media type (#7836) 2023-11-30 12:42:32 +05:45
Swikriti Tripathi
0d9f676901 tests: refactor send profind request to space function (#7835) 2023-11-29 11:25:01 +05:45
Viktor Scharf
91ae5172f6 [full-ci]Enforce pass by default. changed api tests (#7706)
* set enforce pass by default. change tests

* fix tests

* fix test
2023-11-13 23:37:12 +01:00
Sabin Panta
1c6600365c [tests-only][full-ci] Refactoring all graphapi related featurefile wording (#7389)
* refactoring the feature file steps

* addressing review
2023-10-30 17:57:42 +05:45
Viktor Scharf
711c86ef3a [test-only] new lock tests (#7595)
* add new lock tests

* fix after review

* Update WebDavLockingContext.php
2023-10-27 14:45:15 +02:00
Nalem7
a15fe45d6a add tests for copy file within shares ucing file-id (#7593) 2023-10-27 15:11:32 +05:45
Prajwol Amatya
2bee588977 added test for previewing shared resource inside project space (#7544) 2023-10-26 12:59:34 +05:45
Swikriti Tripathi
c42e5ae6ba [tests-only][full-ci]Adds test for getting share jail space information of the user when user has pending share (#7530)
* Adds test for getting share jail space information of the user when user has a pending share

* fix style and add issue tag

* address reviews
2023-10-20 15:04:07 +05:45
Sawjan Gurung
a441932a30 retry space listing if required space is not found (#7521) 2023-10-19 09:47:47 +02:00
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
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
Saw-jan
18ac0425cb add method to create folder 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
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
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
Sagar Gurung
ddaa825617 Added test for the copy with file-id in url (#7308) 2023-09-26 18:04:48 +05:45
Viktor Scharf
eb537987ad [test-only] ApiTest. test for password policy (#7276)
* test for password policy

* test flaky

* renamed envs
2023-09-18 10:21:35 +02:00
Karun Atreya
8d1b2e3343 [tests-only][full-ci] removing the setresponse in given/then step in CheckSumContext and FavoritesContext (#7202)
* making helper function, checking and setting response in given step and when steo respectively

* returning response and using in given/then steps as required in favoritesContext

* set the returned response on SpaceContext

* changed to inline variable in some lines as required

* to check for the specific https response code
2023-09-11 17:42:27 +05:45
Karun Atreya
dbb666babf [tests-only][full-ci] removing the setresponse in given/then step in FileVersionsContext (#7111)
* migrating set response from helper function to when step in preview feature

* separate single when/then steps by converting to helper function

* use of httpstatuscode check function in given step and rebased

* change function name

* remove use of setresponse in then step

* set the returned response
2023-09-11 17:29:28 +05:45
Prajwol Amatya
0aa41d90c1 send X-Request-Id in header of every request (#7085) 2023-09-06 16:07:53 +05:45
Sagar Gurung
76d6f12657 Make test code better for CI (#7190) 2023-09-01 16:42:35 +05:45
Prajwol Amatya
84bc7d88e2 added tests for reading content of a file by fileId using WebDav API (#6958) 2023-08-18 09:58:25 +05:45
Prajwol Amatya
db098fa4f5 refactored acceptance test code to store response data related to public shares on single store (#6930) 2023-08-03 13:51:22 +05:45
Amrita
6900a80511 Add more tests coverage (#6854) 2023-07-25 12:27:42 +05:45
Salipa-Gurung
926e547f99 add test for downloading space 2023-07-25 12:24:26 +05:45
Viktor Scharf
f6e8d3ee84 [test-only] apiTest. check parentId in the Propfind response (#6759)
* check parentId in the Propfind response

* split test
2023-07-12 09:12:34 +02:00
Viktor Scharf
3009ea192f [test-only] Api test. Checking X-Request-Id in response header (#6765)
* check X-Request-Id in response header

* style
2023-07-12 09:11:55 +02:00
Viktor Scharf
873732fbb1 [test-only][full-ci]ApiTests. purge trash bin tests (#6699)
* purge trash bin tests

* fix
2023-07-04 14:43:00 +02:00
Prajwol Amatya
0b67887e29 implement DRY principle (#6553) 2023-06-28 10:56:08 +05:45
Viktor Scharf
753c8f2372 [full-ci][tests-only] Check id file owner in response (#6627)
* check owner as spaceId in sharing response

* fix after review
2023-06-27 12:50:10 +02:00
Sagar Gurung
6540865d50 [tests-only][full-ci]Added scenarios for quota exceed with API (#6450)
* Added scenarios for quota exceed with API

* Review Address

* changed code

* review-address: check for space not exists

---------

Co-authored-by: Viktor Scharf <scharf.vi@gmail.com>
2023-06-15 11:50:38 +05:45
Nalem7
cb16fd5843 [tests-only][full-ci]add test for antivirus user group sharing (#6463)
* add test for antivirus user and group share

* added test for 3 file

* deduct of one file

---------

Co-authored-by: nabim777 <“nabinalemagar019@gmail.com”>
2023-06-12 17:12:01 +05:45