Commit Graph

395 Commits

Author SHA1 Message Date
nirajacharya2
dac33abe41 refactoring Sharing.php test file (#7534) 2023-12-05 18:43:30 +05:45
nirajacharya2
26411f1f3b re runing ci (#7811)
Co-authored-by: Nalem7 <61624650+nabim777@users.noreply.github.com>
2023-12-01 14:02:39 +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
Sabin Panta
4d14e048d9 added steps for group removal in provisioning.php files (#7380) 2023-11-29 10:35:55 +05:45
Swikriti Tripathi
580e8aeb46 tests: add api tests for changing system language using graph api (#7817) 2023-11-28 15:33:17 +05:45
nirajacharya2
8a6fcc7b70 refactoring FeatureContext.php file (#7548) 2023-11-28 14:03:07 +05:45
Swikriti Tripathi
a1dd520262 tests: add test for lock/unlock in public link share (#7789) 2023-11-27 16:39:47 +05:45
Swikriti Tripathi
ed46fa9148 [tests-only]tests: add tests for unlocking using file id (#7780)
* tests: add tests for unlocking using file id

* tests: add test for unloing a project space file using fileid

* tests: add test for uploading to a share space file using fileid

* tests: adddress reviews
2023-11-24 14:22:41 +05:45
Swikriti Tripathi
96862f4eb1 tests: add tests for lock expiration (#7777) 2023-11-22 15:37:29 +05:45
Sawjan Gurung
da390e8f12 [tests-only] Retry listing roles if the response body is invalid (#7735)
* retry listing roles if the response body is invalid

* fix php style

* reset tryAgain
2023-11-21 18:29:19 +05:45
Swikriti Tripathi
74dc3663a5 [tests-only][full-ci]Move unlock related tests from core to local api tests (#7747)
* Move unlock related tests from core to local api tests

* refactor tests

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>

* test:add failing test to expected to failure

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>

---------

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
2023-11-21 15:07:26 +05:45
Nalem7
111dbb33a9 add test for unlocking project space file (#7698) 2023-11-21 12:18:23 +05:45
Swikriti Tripathi
792c8cc1b9 [tests-only][full-ci]Move locks related tests to local api tests and link the failing lock tests with correct issues (#7643)
* Link the failing lock tests with correct issues that they are failing with

* Move locks relates tests to new suite

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>

* address reviews

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>

* Add new scenario for trying to lock a folder

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>

---------

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
2023-11-17 16:22:12 +05:45
Sawjan Gurung
a4e7a64cd0 wait 5 seconds before search (#7733) 2023-11-16 15:17:48 +05:45
Roman Perekhod
a6b75bc9f6 fix libre-graph status codes (#7705)
* fix libre-graph status codes

* owncloud-test-middleware bumped

---------

Co-authored-by: Roman Perekhod <rperekhod@owncloud.com>
2023-11-15 17:45:23 +01:00
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
Sawjan Gurung
3653df5f96 wait 5 seconds for search index to complete (#7707) 2023-11-13 21:01:46 +05:45
Viktor Scharf
dfc55c39ef [test-only] Add more lock test (#7624)
* add more lock test

* Update WebDavLockingContext.php

* fix
2023-11-01 10:47:08 +05:45
Sawjan Gurung
e931597cc7 [tests-only] skip search by last month test (#7631)
* skip search by last month test

* use first day of the previous month
2023-10-31 17:34:32 +05:45
nirajacharya2
cbfd894243 add query params to the log (#7493) (#7399)
Co-authored-by: Sawjan Gurung <saw.jan.grg3e@gmail.com>
2023-10-31 12:17:50 +05:45
Sabin Panta
cc1f93eef1 [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-10-31 12:01:36 +05:45
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
Sawjan Gurung
8eb7f7aa96 [tests-only] skip sharing tests in reva (#7591)
* do not use spacesContext

* skip sharing tests in reva

* update expected failure list

* do not cleanup status codes

* skip shares tests in reva

* update expected failure list
2023-10-27 12:37:09 +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
Viktor Scharf
c179485db6 [full-ci] ApiTests. enable auto accepting in api tests (#7477)
* enable auto accepting in test

* go format
2023-10-17 16:29:05 +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
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
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
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
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
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
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
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