Commit Graph

207 Commits

Author SHA1 Message Date
Ralf Haferkamp
92a2980875 fix: Status codes for Space Disable/Delete
Allow a "permission denied error" from reva to bubble up to the client.
Reva was fixed to return "permission denied" only when the space to be
delete can actually be listed by the user. Other wise it will return
"not found". See reva commit 1bf72cb76394671f373e87f15f23f978cf41ab08.

So when a user with the 'can manage' role tries to purge an already
disabled space it will now get "Forbidden" status instead of a "Not
found".

Also fixes the expected status codes in the tests.

(cherry picked from commit 99d80f30a9)
2026-06-22 11:19:14 +02:00
Viktor Scharf
25246782b2 [full-ci] Enhance getSpaceByName: check local cache before Graph API calls (#1574)
* Enhance getSpaceByName: check local cache before Graph API calls

* Update API endpoint for regular user drives
2025-09-30 13:08:21 +02:00
Viktor Scharf
723340dba6 [full-ci] getting personal space by userId instead of userName (#1553)
* getting personal space by userId instead of userName

* delete geting userId via api call

* add new created user id to user list

* fix after review
2025-09-26 10:51:41 +02:00
Viktor Scharf
f0971d9fe4 test for #452 (#826) 2025-05-13 09:16:44 +02:00
Viktor Scharf
113725794d delete issue message in top of the feature files 2025-02-04 12:37:58 +01:00
Viktor Scharf
9db4693a9e rebranding tests 2025-01-16 17:39:02 +01:00
Jörn Friedrich Dreyer
a46fd132bd use OC_ env prefix
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-13 16:11:11 +01:00
nabim777
0a7977cd7b remove the test for the tus-upload
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
2025-01-02 09:44:23 +05:45
nabim777
c42745e8d1 add scenario in expected failure
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
2025-01-02 09:40:23 +05:45
nabim777
881a7c1092 change the file
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
2025-01-02 09:40:22 +05:45
nabim777
f257ddedbb add tests for uploading the zero-byte via tus and webdav api
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
2025-01-02 09:40:22 +05:45
prashant-gurung899
f5f30f053b fix typo in then steps
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-12-17 13:04:19 +05:45
Niraj Acharya
6848667292 adding test coverage for remaning quota bug 2024-12-11 14:59:38 +05:45
Niraj Acharya
c98841904d removing without skeleton files string from the user creation steps 2024-12-02 09:12:57 +05:45
Sabin
b5d5afcd5c remove old dav path for public share 2024-11-19 14:54:02 +05:45
Niraj Acharya
a780da88d1 running secure viewer role with ocis wrapper instead of running ocis with GRAPH_AVAILABLE_ROLES 2024-10-25 11:55:50 +05:45
Niraj Acharya
66856ef91e adding test for editing space with role space editor without version 2024-10-23 09:48:55 +05:45
Saw-jan
f86d137f87 test: make remote.php configurable
test: build dav paths

test: fix paths

test: merge method args

test: add issue tags

test: add new expected failure file

test: merge expected-failure files before running tests
2024-10-21 16:57:58 +05:45
Saw-jan
732f2b241e test: rename PROPFIND response check steps
test: fix tests
2024-10-02 13:33:33 +05:45
Saw-jan
08922584bc test: fix PROPFIND shares space tests 2024-10-02 13:33:33 +05:45
Saw-jan
878c5f4075 test: ensure share is available before performing actions
test: fix expected-failure lines
2024-07-26 15:19:33 +05:45
Saw-jan
dd8a3eb3d2 tests: add test cases for non-admin actions to admin resources 2024-07-18 17:43:16 +05:45
Sabin
dc0401e25e downloading file shared via secure view role 2024-06-19 14:41:19 +05:45
prashant-gurung899
8821017a77 lint the gherkin feature files
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-06-12 10:13:01 +05:45
Prarup Gurung
23800a6b09 [full-ci] [tests-only] Use sharing-ng in given steps for sharing (#9221)
* resharing.feature: Used sharingNG for sharing in given step

* unlockFiles.feature: Used sharingNG for sharing in given step

* apiSpacesShares suite: Used sharingNG for sharing in given step

* acceptShares.feature: Used sharingNG for sharing in given step

* uploadFile.feature: Used sharingNG for sharing in given step

* coreApiWebdavUploadTUS suite: Used sharingNG for sharing in given step

* tag.feature: Used sharingNG for sharing in given step

* coreApiShareOperationsToShares2 suite: Used sharingNG for sharing in given step

* updateShare.feature: Used sharingNG for sharing in given step

* Fixed line numbers in expected failure
2024-05-22 13:01:54 +05:45
Salipa Gurung
b2edca2619 [tests-only] [full-ci] Use sharingNG in remaining feature file of apiSpaces folder (#9122)
* update given step using sharingNg in restoreSpaces.feature

* update given step using sharingNg in setQuota.feature

* update given step using sharingNg in tag.feature

* update given step using sharingNg in trashBin.feature

* update given step using sharingNg in tusUpload.feature

* update given step using sharingNg in uploadSpaces.feature
2024-05-13 16:15:12 +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
Viktor Scharf
79c74711c4 [full-ci] Delete resharing tests (#8704)
* feat: disable resharing by default

delete re-sharing tests

* fix tests

---------

Co-authored-by: Michael Barz <mbarz@owncloud.com>
2024-03-27 10:30:25 +01:00
Prarup Gurung
fcba2d34a4 Used kebab case for example table header name 2024-03-21 10:04:25 +05:45
Prarup Gurung
d48ea766ea Refactored step to use depth for propfind 2024-03-13 15:00:47 +05:45
Sawjan Gurung
3cea035d6d [tests-only] use new json schema assertion lib that supports latest schema drafts (#8503)
* test(api): use new json schema assertion lib that supports latest schema drafts

* test(api): fix json schema

* test(api): fix method call

* test(api): update expected failure lines

* test(api): add custom schema validator

* test(api): add custom schema validator

* test(api): add custom schema validator

* test(api): add custom schema validator

* test(api): make json array validation strict

* test(api): fix php code style

* test(api): update expected failure lines
2024-02-23 16:24:22 +05:45
nirajacharya2
4592d06c2b fixing incorrect json format for json assertion steps (#8265) 2024-01-24 09:57:19 +05:45
Sawjan Gurung
cb0090e840 extend test coverage for replacing file with zero-byte file (tus upload) (#8105) 2024-01-22 20:01:10 +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
Swikriti Tripathi
861e32eadb [tests-only][full-ci]Move lock related tests to new suites (#7645)
* Move lock related tests to new suites

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

* update expected to fail file

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

---------

Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
2023-11-02 12:31:19 +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
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
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
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
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
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
jkoberg
adcfddb7b2 adjust tests
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-08-31 12:11:43 +02:00
nabim777
93965cce40 move files in apiFullTextSearch 2023-08-31 12:46:46 +05:45
Swikriti Tripathi
3fb6b94698 Fix the test step ordering 2023-08-22 16:23:17 +05:45
Karun Atreya
997187226f added scenario for searching inside folder in shares (#6982) 2023-08-16 12:41:55 +05:45
nirajacharya2
5f93a22eb9 removing @api tag from all acceptance feature files (#7027) 2023-08-16 09:29:00 +05:45
KarunAtreya
2238806060 added test scenario for searching inside folder in space 2023-08-08 09:43:53 +05:45