Commit Graph

218 Commits

Author SHA1 Message Date
prashant-gurung899
587bf1b251 fix status code check
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-06-21 14:21:25 +05:45
nirajacharya2
c48f43531d removing usage of a stepdefination inside another stepdefination in WedDav.php (#9205) 2024-05-30 17:07:09 +05:45
Ralf Haferkamp
c425c173c4 Fix capitalization of 'name' property in tests 2024-05-30 11:05:29 +02:00
Prashant Gurung
4aadb4d643 [tests-only][full-ci] removing the usage of a stepDefinition inside another stepDefinition in SpacesContext.php (#9190)
* remove usage of a stepDef inside another in spacesContext

* fix CI

Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>

---------

Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-05-21 15:04:48 +05:45
Sabin
1d1babd358 changing given from ocs to graph in feature file 2024-05-21 14:21:31 +05:45
Prarup Gurung
8f659e3024 Addressed reviews 2024-05-15 09:36:16 +05:45
Prarup Gurung
f2f2439284 shareSubItemOfSpace.feature: Used sharingNG for sharing in given step 2024-05-14 17:07:10 +05:45
nirajacharya2
85381d3902 removing usage of a stepdefination inside another stepdefination in ChecksumContext.php (#9117) 2024-05-13 12:56:15 +05:45
Prarup Gurung
b4b51437a0 [full-ci] [tests-only] Used sharing-ng in given steps (#9120)
* publicLinkDownload.feature: Used sharingNG for sharing in given step

* shareOperations.feature: Used sharingNG for sharing in given step
2024-05-09 17:17:14 +05:45
Salipa Gurung
971f34ac0a [tests-only] [full-ci] Use sharing ng in api spaces (#9082)
* update given step using sharingNg in changeSpaces.feature

* update given step using sharingNg in disableAndDeleteSpaces.feature

* update given step using sharingNg in editPublicLinkOfSpace.feature

* update given step using sharingNg in filePreviews.feature

* update given step using sharingNg in listSpaces.feature

* update given step using sharingNg in publicLink.feature

* update given step using sharingNg in removeSpaceObjects.feature
2024-05-09 14:07:56 +05:45
nirajacharya2
4c2ae74837 removing usage of a stepdefination inside another stepdefination in OCSContext.php (#9013) 2024-05-09 13:01:41 +05:45
nirajacharya2
3f85870bba removing usage of a stepdefination inside another stepdefination in FilesVersionsContext.php (#9053) 2024-05-06 11:49:15 +05:45
Phil Davis
86b931f176 tests: code review of acceptance tests 2024-04-29 13:47:08 +05:45
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