Commit Graph

1298 Commits

Author SHA1 Message Date
nirajacharya2
342af62442 adding test for listing file versions in project space (#7980) 2023-12-18 09:52:24 +05:45
nirajacharya2
b7bba06541 refactoring Sharing.php test file (#7889) 2023-12-11 13:09:41 +05:45
Sabin Panta
a61723b357 adding skip on reva tag (#7856) (#7857) 2023-12-06 14:05:25 +05:45
nirajacharya2
86c4d02e48 re runing ci (#7867)
Co-authored-by: Nalem7 <61624650+nabim777@users.noreply.github.com>
2023-12-04 17:09:13 +05:45
Sabin Panta
26423fa5fb backport from main (#7837) 2023-11-30 09:56:12 +05:45
nirajacharya2
b71a50065d refactoring FeatureContext.php file (#7822) 2023-11-29 09:45:29 +05:45
Nalem7
68b613d58b Backport add test for move and rename file between space in project-space (#7816) 2023-11-28 12:05:28 +05:45
Nalem7
1c8833cd17 Backport add test for rename and move the file between personal and share space using fileid (#7813) 2023-11-28 09:47:40 +05:45
Nalem7
3ebc3abff8 add tests for move rename file between personal and project space with file-id (#7807) 2023-11-27 16:06:31 +05:45
nirajacharya2
b4b3827805 add query params to the log (#7493) (#7646)
Co-authored-by: Sawjan Gurung <saw.jan.grg3e@gmail.com>
2023-11-27 14:24:06 +05:45
Nalem7
cd09d444fd add tests for move file within shares using file-id (#7776) 2023-11-27 11:35:31 +05:45
Sabin Panta
d59dddfeb9 Update tests/acceptance/features/coreApiShareManagementToShares/moveReceivedShare.feature
Co-authored-by: Sawjan Gurung <saw.jan.grg3e@gmail.com>
2023-11-13 09:24:07 +05:45
Sabin Panta
b555d5151d [tests-only][full-ci] refactoring the user delete code from ocs to graphapi (#7020)
* addressing the reviews

* addressing the review

* refactored test code

* updated expected failures file
2023-11-09 15:52:38 +05:45
nabim777
5b636aa66f add test for copy file between space in project-space 2023-11-07 09:59:13 +05:45
Sabin Panta
c3a41e0ef9 [tests-only ][full-ci] backport all graphapi related featurefile wording (#7640)
* refactoring the feature file steps

* backporting from main
2023-11-06 17:27:24 +05:45
Sagar Gurung
b97ed83f62 [tests-only][full-ci]Backport of check for deleted scenarios in expected to failure file (#7650)
* Added script to check the deleted suites in the expected to failure files

* Added drone pipeline

* Refactor script in loop
2023-11-03 11:40:47 +05:45
Nalem7
35a1e4f784 add test for copy file between personal space and share space using fileID (#7642) 2023-11-01 16:37:32 +05:45
Sabin
ff3f30c039 backporting from main 2023-11-01 11:48:14 +05:45
Viktor Scharf
bc70f2a1ab [test-only] new lock tests (#7595)
* add new lock tests

* fix after review

* Update WebDavLockingContext.php
2023-10-31 17:34:10 +05:45
Sabin Panta
e68b98d288 [tests-only] [full-ci] backporting the PR related to user addition to group to graphapi (#7545)
* backporting the PR

* [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-31 12:15:57 +05:45
Nalem7
804d17c501 add tests for copy file within shares ucing file-id (#7605) 2023-10-30 10:34:40 +05:45
prajwol
45fb09f167 added test for previewing shared resource inside project space 2023-10-26 15:07:30 +05:45
Nalem7
06658eaff4 add test for copy file between project and personal space (#7550) 2023-10-20 20:43:51 +05:45
Karun Atreya
f63d9cf275 refactor given/when/then steps in spaces context (#7506)
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 14:27:50 +05:45
Phil Davis
1597e248cc Merge pull request #7494 from owncloud/port/prs-7371-7493
[tests-only] Log requests and responses for the failing tests
2023-10-16 16:24:51 +05:45
Sabin Panta
4d48889a1a addressing the review (#7474) 2023-10-16 12:20:34 +05:45
Sawjan Gurung
8bb335bd85 add query params to the log (#7493) 2023-10-16 11:43:03 +05:45
Sawjan Gurung
baac56f358 [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-16 11:42:08 +05:45
KarunAtreya
a6964c2d3d refactor publicwebdav context removing setresponse in given/then steps
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-16 09:30:25 +05:45
Karun Atreya
46fde6240a [tests-only][full-ci] Backport refactoring webdav context removing setresponse() in given/then step (#7480)
* refactoring webdav context (setting response in when step only)

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

* setting response
2023-10-13 16:50:56 +05:45
Karun Atreya
d26d6689b0 refactored removing setting response in given/then steps in spacetus context (#7481)
adressing reviews
2023-10-13 12:48:57 +05:45
Sawjan Gurung
c80a949415 [tests-only] Fix API test steps (#7457) (#7475)
* add missing step defs

* fix steps

* update expected failure line
2023-10-13 12:27:16 +05:45
Prajwol Amatya
71f0a25f8e added test coverage for previewing shared resources using spaces dav path (#7234) 2023-10-12 11:39:07 +05:45
Nalem7
1700024048 add test for move with fileID in project space (#7421) (#7443) 2023-10-11 12:53:59 +05:45
Nalem7
3da78b2919 [tests-only][full-ci] refactor profind response (#7327) (#7450)
* refactor profind response for path checking strictly

* refactor searchResponse also for xpath checking

---------

Co-authored-by: nabim777 <“nabinalemagar019@gmail.com”>
2023-10-10 17:27:39 +05:45
Sawjan Gurung
6aa19c8f6e [tests-only] Removed unused steps from AuthContext (#7407) (#7451)
* 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 13:27:46 +02:00
Nalem7
fa7def2284 add test for copy with fileID (#7398) (#7442) 2023-10-10 14:35:12 +05:45
Sawjan Gurung
bfe04776fb [tests-only] Fix share creation methods (#7400) (#7425)
fix steps

add method to create folder

strict check for successful request

fix steps
2023-10-06 17:11:31 +05:45
Karun Atreya
9cee6bcbcd [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 17:07:33 +05:45
Karun Atreya
f2f3f546b4 refactor setting response in given/when/then steps in ocs and webdavlocking context (#7413)
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-05 16:56:31 +05:45
Saw-jan
b85396a3c0 [tests-only] Remove AppConfigurationContext file (#7396)
include capabilities context

fix return type
2023-10-05 09:56:01 +05:45
Sawjan Gurung
c573f8655c [tests-only] Added tests with depth:infinity enabled (#7395)
* add depth infinity tests

* fix step

* add passing tests only

* format rable
2023-10-05 09:56:01 +05:45
Sawjan Gurung
de42e3e109 [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-05 09:56:01 +05:45
Sagar Gurung
dea726af84 [tests-only][full-ci]Backport move byfileid (#7402)
* Added test for move and rename by file-id

* Review Address
2023-10-04 16:30:13 +05:45
Karun Atreya
b7e3f2a718 refactor given/when/then steps in noification context (#7358)
refactor given steps

refactor use of helper function in cross steps

return using inline variable
2023-09-29 12:07:45 +05:45
Sagar Gurung
03926e6182 [tests-only][full-ci]Backport propfind by fileid (#7365)
* Added test for the propfind with file id

* Refactor the scenario title description

* Review address- refactor scenarios
2023-09-27 14:42:57 +05:45
Sagar Gurung
93521e5f55 Added test for the copy with file-id in url (#7364) 2023-09-27 12:30:04 +05:45
Karun Atreya
cc794abb38 refactor given when then steps in settings and tus contexts (#7357)
set resource location from response

addressed the reviews

reset  spaceidfromocis

reset after scenario using after hook
2023-09-27 12:29:56 +05:45
Sagar Gurung
6a7f56d056 [tests-only][full-ci]Added documentation for running tika related tests (#7342)
* 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 15:36:12 +05:45
Prarup Gurung
f7fde6ee87 Merge pull request #7280 from owncloud/backport-refactor-step-search-result-should-contain-only-these-files
[tests-only][full-ci] Backport refactor step search result should contain only these files
2023-09-21 11:43:57 +05:45