Commit Graph
60 Commits
Author SHA1 Message Date
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
Julian Koberg c2d1c81aa1 fix(ocis): adjust tests
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2025-06-18 16:22:42 +02:00
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
Niraj Acharya c98841904d removing without skeleton files string from the user creation steps 2024-12-02 09:12:57 +05:45
pradip 0baccb922a test(refactor): change the structure of When step while moving, copying and renaming 2024-11-19 17:17:59 +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
amrita 8cc13a2dbe add tests for file version with OCIS_DISABLE_VERSIONING config 2024-10-22 12:26:47 +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
prashant-gurung899 809b7a4373 add tests to check versions of file in a space shared via link
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-09-10 11:56:58 +05:45
prashant-gurung899 4c828d36f0 add tests for new role space editor withour versions
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-09-09 17:01:19 +05:45
Salipa-Gurung 5f9469540d add test coverage for copying file using file id from project space 2024-09-04 16:57:29 +05:45
Salipa-Gurung 321bb6af7e add test coverage for copying file using file id from share space 2024-08-29 17:23:09 +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
Saw-jan 80c72f59be test: wait and check for sync status before action 2024-06-28 09:51:07 +05:45
Viktor Scharf e95325bdb3 fix flaky 2024-06-27 12:28:26 +02:00
prashant-gurung899 8821017a77 lint the gherkin feature files
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-06-12 10:13:01 +05:45
Sabin Panta 8b2f5282c2 changing given step of creating share in feature file (#9105) 2024-05-09 14:23:32 +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
Sabin Panta 288619f626 changing given step of creating share in feature file (#9092) 2024-05-08 10:06:23 +05:45
Prajwol Amatya 5acba455dc added test for group user downloading shared resource inside project space when auto sync is disabled (#8945) 2024-04-25 18:43:11 +05:45
Prajwol Amatya 78ba483784 added test for sharee downloading resource inside project space when auto sync is disabled (#8944) 2024-04-24 16:25:13 +05:45
Nalem7 cfd235068d add test for downloading resouces by group user when auto sync is disabled (#8754) 2024-04-04 10:00:29 +05:45
Nalem7 16c412f870 add test for downloading resouces by user when auto sync is disabled (#8737) 2024-03-27 15:37:23 +05:45
Viktor ScharfandMichael Barz 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
Christian Richter 6ddac23b16 fix tests
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-03-18 16:06:48 +01:00
Sawjan Gurung 50198be6ba test(api): extend tests MOVE to space-id as destination (#8470) 2024-02-19 15:07:17 +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 c8d102351e adjust MOVE tests (#8316) 2024-01-30 16:53:07 +05:45
Sawjan Gurung d8d7795122 test: revert error message 2024-01-26 21:19:11 +05:45
Sawjan Gurung 921f7d9d20 test: adjust MOVE between spaces test expectations 2024-01-26 20:56:39 +05:45
Sawjan Gurung ff10d011e0 [tests-only] Added test coverage for checking file versions after MOVE (#8183)
* add test coverage for checking file versions after MOVE

* fix php style

* address reviews
2024-01-12 10:34:44 +01:00
nirajacharya2 5b165e3209 adding test for getting versions of a file after moving it (#8013) 2024-01-10 17:11:45 +05:45
Sawjan Gurung bc59eab37b [tests-only] Added API tests coverage for MOVE within same folder with same filename (#8135)
* added API tests for moving a file within same folder and same name

* added API tests for moving a file within same folder and same name (file-id)

* update expected failure file
2024-01-09 16:33:04 +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
Saw-jan 23111c8bba adjust MOVE tests to check 403 code 2024-01-02 18:11:46 +05:45
nirajacharya2 03143361d9 [tests-only][full-ci] Added API tests to check file versions of a file inside a shared space (#7969)
* adding test for file version of a share in a projectspace

* adding test for listing file version of a file inside project space
2023-12-14 14:51:50 +01:00
nirajacharya2 dd12844282 adding test for file version of a share in a projectspace (#7829) 2023-12-14 14:44:27 +05:45
Nalem7 e1ce05609e add test for move and rename file between space in project-space (#7653) 2023-11-24 17:17:52 +05:45
Nalem7 74f1b2c56d add test for rename and move the file between personal and share space using fileid (#7637) 2023-11-23 15:21:26 +05:45
Nalem7 42690f3e80 add tests for move rename file between personal and project space with file-id (#7535) 2023-11-21 12:00:04 +01:00
nabim777 c52f2fc8ca add tests for move file within shares using file-id 2023-11-21 10:13:56 +05:45
Nalem7 418e13517d add test for copy file between space in project-space (#7647) 2023-11-06 12:34:54 +05:45
Nalem7 037201828f add test for copy file between personal space and share space using fileID (#7627) 2023-11-01 14:09:05 +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
Nalem7 a15fe45d6a add tests for copy file within shares ucing file-id (#7593) 2023-10-27 15:11:32 +05:45