Commit Graph

57 Commits

Author SHA1 Message Date
Saw-jan
d8c74a30a2 test: update tests related to issue-1124
test: fix tests and issue tags
2024-08-01 16:50:47 +05:45
Saw-jan
5fabf09451 test: fix MOVE within Shares tests 2024-07-24 11:35:45 +05:45
Sawjan Gurung
18048aaaeb Merge pull request #9564 from owncloud/webdav-remove-then-steps
[tests-only][full-ci] remove unused Then step definitions from WebDav.php
2024-07-09 16:20:42 +05:45
prashant-gurung899
9c4e26ac85 remove unused Then test steps
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-07-09 15:24:10 +05:45
Saw-jan
79175b0f25 test: add TUS upload test for .. path 2024-07-09 14:10:50 +05:45
Saw-jan
78ca9bacf9 test: add cli test for resetting user password 2024-07-09 11:48:03 +05:45
prashant-gurung899
0cc27da636 remove unused when test steps
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-07-09 10:06:23 +05:45
prashant-gurung899
cafaec75fb remove unused given test steps
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-07-08 14:57:16 +05:45
prashant-gurung899
a3bb4fdc9f remove unused step definition function
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-07-08 09:51:46 +05:45
pradip
266c28d80b test: Remove unused code: array_reverse() and \array_reverse() 2024-06-27 17:07:48 +05:45
prashant-gurung899
0c2173b7f4 add folderDepth parameter
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-06-19 12:44:50 +05:45
Phil Davis
c00d82951a test: check for status codes that are different on oCIS and reva 2024-06-07 17:16:45 +05:45
Phil Davis
96afdc3166 test: adjust tests related to issue 1667 2024-06-04 14:25:07 +05:45
nirajacharya2
c48f43531d removing usage of a stepdefination inside another stepdefination in WedDav.php (#9205) 2024-05-30 17:07:09 +05:45
Prarup Gurung
f98304cac6 listFiles.feature: Used sharingNG for sharing in given step 2024-05-20 15:49:50 +05:45
Sawjan Gurung
590a40d979 [tests-only] add file/folder creation and list sharedByMe of link shares (#9150)
* test: add more edge-case tests for file/folder creation

* test: add list sharedByMe tests for link shares

* test: fix tests

* test: list sharedByMe of drive link share

* test: add issue tag

* test: split scenario
2024-05-17 14:19:53 +05:45
Prarup Gurung
caba30bdb3 used token from last shareng public link for test using shareng 2024-05-15 17:50:47 +05:45
Prarup Gurung
bb6cb7d7a3 createPublicLinkShare.feature: Used sharingNG for sharing in given step 2024-05-15 17:50:46 +05:45
Sabin Panta
db281c4257 changing given step of creating link share in feature file (#9019) 2024-05-03 09:36:14 +05:45
Sawjan Gurung
5c7c363e2b [tests-only] add API tests for file download and rename edge cases (#9018)
* test: add API tests to download deleted file

* test: add more MOVE/rename API tests

* do not reuse step def method

* remove unused step

* fix typo

* fix tests

* update expected failure

* update expected failure
2024-05-02 12:21:35 +05:45
Phil Davis
86b931f176 tests: code review of acceptance tests 2024-04-29 13:47:08 +05:45
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
7af7013b3a [tests-only] extend search tests for mediatype filter (#8446)
* test(api): extend search tests for mediatype filter

* test(api): fix php code style

* test(api): fix null argument
2024-02-15 14:02:59 +05:45
Nalem7
18a62b5133 replacing the featureContext with HttpREquestHelper in test (#8169)
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
2024-01-25 14:06:45 +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
25b5b6bee1 added test coverage for previewing shared resources using spaces dav path (#7472) 2023-10-13 11:51:08 +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
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
Saw-jan
c138bc68fd fix steps 2023-10-06 14:55:38 +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
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
Swikriti Tripathi
8bad22ce6d Add test for searching content across files with different format with search text highlight (#7236) 2023-09-15 15:31:46 +05:45
Nalem7
78f08eb092 adding the path check (#7007) 2023-09-13 18:16:28 +05:45
Prajwol Amatya
fa749529a9 [tests-only][full-ci ]Forwardport add test coverage for file preview using space dav version (#7266)
* Add tests for preview using space dav~

* use makeDavRequest to get preview of resource

---------

Co-authored-by: amrita <bunnycrestha34@gmail.com>
2023-09-12 12:05:55 +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
Sabin Panta
5efc3c51a1 [tests-only][full-ci] refactoring user creation Given steps from provisioning into GraphContext (#7019)
* refactored the user creation given statement from provisioning to graph api

added getUser steps that covers the steps for user with user light role

* added userlight step tests to check drive information and updated expected failure files

* added usercreation initiation code

* deleted seperate tests for user light role

* remove unnecesary changes

* add user not initialize step

* corrected the testcode

* moved the steps from graph to provisioning file

* fix creating single ldap user

* fix: user check method

* initialize user via graph

* addressing reviews

---------

Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
2023-09-06 09:22:38 +05:45
Nalem7
048d67c712 add api test for search files using tag in project spaces (#6853) 2023-08-04 17:29:02 +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
Phil Davis
bd634cbcf3 Retry if 409 is received when uploading in a Given step 2023-07-18 16:10:21 +05:45
Niraj Acharya
abb111c3a1 if a requests response is 409 retry upto 10 times 2023-07-18 09:26:36 +05:45
Sabin Panta
9b4244b086 [tests-only] [full-ci] Refactoring unshare step definition code (#6608)
* added unshare scenerio

* remove unshare keyword from step definition

* refactoring of step definition codes

* refactor
2023-06-30 12:22:42 +05:45
Prajwol Amatya
0b67887e29 implement DRY principle (#6553) 2023-06-28 10:56:08 +05:45
Prajwol Amatya
73d48b1132 added response check after file download (#6643) 2023-06-28 10:12:04 +05:45
Amrita
91ea910cf0 Extend notification tests scenario for different language (#6365) 2023-05-31 16:00:10 +05:45
Phil Davis
9b9d88e7d6 Cleanup acceptance tests (#6195) 2023-05-02 17:25:56 +05:45
Sagar Gurung
579dcd082a [tests-only]Added GDPR export. check events when user is created (#6106)
* Added GDPR export for event upload file

* Add for user created events for GDPR export

* Add for user information assertion

* Review Address
2023-04-27 16:04:17 +05:45
Phil Davis
7fb93058cf tidy up acceptance tests 2023-04-21 14:59:50 +05:45
Prarup Gurung
8b93c1b8f6 Removed occ related codes 2023-03-21 09:21:01 +05:45