Commit Graph
131 Commits
Author SHA1 Message Date
Prajwol Amatya 52891efd4e [tests-only][full-ci] test: add test for public link brute-force protection (#13008)
test: add test for public link brute-force protection

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>
2026-10-01 11:03:09 +05:45
Gaurav Soni ef41e736d1 fix: [OCISDEV-388] renaming a resource to its current name is a no-op (#12784)
A MOVE whose source and destination resolve to the same resource is now
answered with 204 No Content server side instead of a confusing 403 or
404, and instead of 409 Conflict on the id based dav route, so every
client behaves the same way. The no-op still requires the move
permission.

The server-side guard lives in reva (owncloud/reva#708 and the follow-up
owncloud/reva#713, which moves the guard above the recursion checks so it
is also reached when the request addresses the resource by its id).
Pulled in here by bumping reva to v2.0.0-20260813121157-d386075a0421.
vendor/ was regenerated with `go mod vendor`; no hand edits.

On the test side the @issue-1976 tags are dropped from the five MOVE
feature files and the corresponding entries are removed from both
expected-failures lists. Scenario Outlines that mix roles with and
without the move permission parameterize the expected status in an extra
http-status-code Examples column rather than being split into duplicate
scenarios. The gherlint newline_before_scenario rule is configured as
["error", 2, true], counting tag lines toward the total, so the eight
scenarios that lost their tag get back the blank line it occupied.

Drop the "viewer" row from the same-name Examples table in
moveByFileId.feature: "viewer" is not a valid space role for a
permissionsRole invitation, so the step errored with
Role 'viewer' not found, and the "Space Viewer" row already covers
the 403.
2026-08-14 10:50:35 +02:00
Kavita GautamandSawjan Gurung f19546bf6b test: public link multifile download
Signed-off-by: Kavita Gautam <kavita@jankaritech.com>

test: public link multifile download

Signed-off-by: Kavita Gautam <kavita@jankaritech.com>

Apply suggestions from code review

Co-authored-by: Sawjan Gurung <saw.jan.grg3e@gmail.com>
2026-05-18 10:31:57 +05:45
Niraj Acharya 89d028edbd test: fix public link related test for k8s deployment 2026-02-06 11:41:20 +05:45
Lukas Hirt c226e4af3d style: fix gherkin format 2025-09-19 17:19:34 +02:00
Lukas Hirt ae276bdfeb test: drop labels of no longer expected issues 2025-09-19 16:15:07 +02:00
Niraj Acharya 77ec7d1559 test: run tests on kubernetes with ociswrapper 2025-09-05 12:28:06 +05:45
Saw-jan 76b1bd2c19 test: remove account_hash_difficulty tests
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
2025-06-10 09:27:51 +05:45
nabim777 34a9ac6ccf add step for checking the status code and headers in TUS upload
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
2025-05-15 10:59:30 +05:45
Prajwol Amatya ffa47b6b4a added test to download archive of folder shared with Secure Viewer role 2025-04-10 14:17:17 +05:45
Saw-jan 212f9bf980 test: combine similar steps 2025-02-19 10:46:47 +05:45
nabim777 593911f9a7 build an wrapper class for TUSUpload
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
2025-02-10 12:26:56 +05:45
prashant-gurung899 64e3381fab use displayname of permissions role in space link share creation step
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2025-01-21 14:11:19 +05:45
prashant-gurung899 e02171d8be use displayname of permissions role in steps
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2025-01-21 09:56:38 +05:45
Saw-jan bedddc4728 tests: fix tests 2024-12-09 14:52:23 +05:45
Niraj Acharya c98841904d removing without skeleton files string from the user creation steps 2024-12-02 09:12:57 +05:45
Saw-jan bc63c2cbd7 test: merge similar steps 2024-11-27 14:54:18 +05:45
prashant-gurung899 e40015c2e2 add test to upload via TUS by federated user
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-11-22 09:47:08 +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
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 3822277421 test: fix TUS upload checksums
test: update expected-failure list

test: fix issue in expected failure list

test: fix OPTIONS scenarios
2024-08-28 10:34:28 +05:45
Saw-jan 29b9f9b07d test: fix COPY to mountpoint tests 2024-08-22 14:52:27 +05:45
prashant-gurung899 8113997a84 added test for copying files between spaces with secure viewer role
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-08-07 14:09:58 +05:45
Sabin b1e55a2853 added test coverage for sharing file between spaces via secure view role
updated expected failures file

addhressing reviews
2024-08-05 17:15:00 +05:45
Saw-jan 903131f767 test: adjust MOVE related tests 2024-08-05 14:46:49 +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
jkoberg 86c17e2b7e fix(tests): default archive format is now zip
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-17 10:13:16 +02:00
amrita e3195eed24 remove reve master tag 2024-07-08 14:48:40 +05:45
prashant-gurung899 263a3dc4e2 remove unused index paramater
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-06-27 15:43:28 +05:45
nabim777 1d0c0e2a6b add test coverage for project-space 2024-06-20 16:45:59 +05:45
Sabin Panta d6ae56eb37 Merge pull request #9408 from owncloud/test-coverage-for-download-file-shared-with-secure-role
[tests-only][full-ci] downloading file shared via secure view role
2024-06-19 15:53:45 +05:45
Sabin dc0401e25e downloading file shared via secure view role 2024-06-19 14:41:19 +05:45
prashant-gurung899 a7cda6bb81 add tests to create quick link of projectSpace
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-06-14 17:21:48 +05:45
Sawjan Gurung 9979165150 Merge pull request #9343 from prashant-gurung899/gherlint-fix-features
[tests-only][full-ci] lint the gherkin feature files
2024-06-12 15:06:24 +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
Roman Perekhod eb95a2859d fixed the error translation from the statusCodeError type into a corresponding graph api Error representation 2024-06-11 22:42:45 +02:00
Prarup Gurung a0a3447a00 Used expirationDateTime key for graph api (#9278) 2024-05-30 12:51:05 +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
Prarup Gurung e1a35b9731 shareUploadTUS.feature: Used sharingNG for sharing in given step 2024-05-15 11:54:59 +05:45
Prarup Gurung 99bb887965 shareSubItemOfSpaceViaPublicLink.feature: Used sharingNG for sharing in given step 2024-05-15 11:54:58 +05:45
Prarup Gurung f2f2439284 shareSubItemOfSpace.feature: Used sharingNG for sharing in given step 2024-05-14 17:07:10 +05:45
Prarup Gurung 8a91df10ad shareSpacesViaLink.feature: Used sharingNG for sharing in given step 2024-05-14 17:07:10 +05:45
Prarup Gurung 4bf22b054a shareSpaces.feature: Used sharingNG for sharing in given step 2024-05-14 17:07:09 +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
Sawjan Gurung abb537f08f [tests-only] separate different SharingNG share steps (#9097)
* separate When steps using root and permissions endpoints

test: separate resource sharing GIven step from space share

test: share space via root endpoint in Given steps

test: use existing step

test: fix more steps

* test: separate resource and space link share creation

test: fix php code style
2024-05-08 14:22:52 +05:45
Prarup Gurung 34ee7e68fe [full-ci] [tests-only] Used sharing-ng in given steps (#9090)
* etagPropagation.feature: Used sharingNG for sharing in given step

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

* moveSpaces.feature: Used sharingNG for sharing in given step
2024-05-08 09:45:36 +05:45
Prarup Gurung 3795a955c1 Addressed reviews 2024-05-07 16:28:25 +05:45
Prarup Gurung f36fc13cba copySpaces.feature: Used sharingNG for sharing in given step 2024-05-07 16:27:11 +05:45
Prarup Gurung 17120a4037 checksum.feature: Used sharingNG for sharing in given step 2024-05-07 16:27:11 +05:45