Pascal Bleser
67e210a541
feat(graph): add the v1beta1 endpoints for a single drive
...
Under /graph/v1beta1, drives could only be listed. Getting, creating,
updating and deleting a single drive was only possible under v1.0,
which returns the permissions of a drive's root with the old role names
instead of the IDs of the unified roles.
Add GET, PATCH and DELETE on /graph/v1beta1/drives/{driveID}, and POST
on /graph/v1beta1/drives. They take the same requests as their v1.0
counterparts. GET, POST and PATCH return the drive in the v1beta1
format, like the v1beta1 list of drives does: with
$expand=root($expand=permissions), the permissions carry the unified
role IDs and grantedToV2. DELETE behaves the same in both versions.
The handlers for getting, creating and updating a drive now take the
API version as a parameter, and the v1.0 and v1beta1 routes call them
with their own version.
The acceptance test helpers for spaces can now use either version of
the Graph API.
Assisted-by: Claude Code:claude-opus-5-5
2026-11-13 19:14:34 +01:00
Michael Barz
db7ffa7a40
Merge pull request #3899 from asaah262/feat/898-allow-setting-spaceid
...
feat(graph): allow client-supplied drive IDs when creating spaces
2026-11-13 16:27:29 +01:00
Pascal Bleser
0e265282d2
fix(graph): reject empty and invisible drive names on update
...
Updating a drive with an empty name ("name": "") succeeded and silently
kept the old name, because the name was only validated when it was
non-empty. Validate it whenever the request contains it, so an empty
name is rejected with 400 like on create. A request without a name, or
with "name": null, still leaves the name unchanged.
Space names were trimmed with strings.TrimSpace, which only removes
Unicode whitespace. Invisible formatting characters such as the
zero-width space (U+200B), the word joiner (U+2060) or the byte order
mark (U+FEFF) aren't whitespace, so a name made only of them was
accepted on create and on update, and showed up as an empty name in
every client. Trim these characters from both ends of the name as
well. Inside a name they are still allowed, since some of them are
needed there, e.g. the zero-width joiner in emoji sequences.
Assisted-by: Claude Code:claude-opus-5-5
2026-11-10 17:16:37 +01:00
Sara Ahmadi
5ea6b25e22
feat(graph): allow client-supplied drive IDs when creating spaces
2026-11-10 13:41:51 +01:00
Viktor Scharf
bc6f016323
api-test: check PROPFIND/REPORT has-preview ( #3714 )
2026-10-14 09:29:38 +02:00
Michael Barz and v.scharf
b955c7c4f0
feat: add new editor roles ( #3637 )
...
* feat: add new editor roles
* add tests for additional roles
* fix: disable new roles in config
* adjust tests
* fix listGrantsShareRole test
---------
Co-authored-by: v.scharf <v.scharf@opencloud.eu >
2026-10-05 14:07:30 +02:00
Viktor Scharf
92560dbbdb
[full-ci] chore: bump reva to 2.50.0 ( #3531 )
...
* chore: bump reva to 2.50.0
* increase timeout for extract properties tests
2026-09-15 10:13:55 +02:00
Viktor Scharf
994086ceb2
add search retry to all serach tests ( #3500 )
2026-09-09 15:21:23 +02:00
Dominik Schmidt
3b83221a87
test(search): retry the driveItem GET until the extracted properties match
...
Property extraction reaches the driveItem asynchronously, so the GET
step previously waited only until any extraction facet key appeared and
a separate step then validated the full schema, which could run on a
partial payload and fail intermittently. The GET and the status check
stay plain steps; a new explicit Then step re-fetches the item until
the response satisfies the expected schema (a partial never matches) or
the WaitHelper timeout elapses.
2026-09-08 13:39:00 +02:00
Viktor Scharf
76ff13b47e
api-test: replace sleeps with WaitHelper poll for async state ( #3239 )
...
* api-test: replace sleeps with WaitHelper poll for async state
* php-style
2026-08-05 09:23:57 +02:00
Viktor Scharf
f3693ef112
api-test: cover additional unified roles in acceptance tests ( #3169 )
2026-07-27 09:12:38 +02:00
Viktor Scharf
a53eb44083
steps refactoring ( #3100 )
2026-07-14 09:32:35 +02:00
Sawjan Gurung
cffeb4a690
[full-ci][tests-only] test: fix some test flakiness ( #2003 )
...
* test: check content after upload
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com >
test: check content with retry
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com >
* test: check empty body before json decoding
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com >
* test: wait post-processing for webdav requests if applicable
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com >
* test: check token before doing request
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com >
test: check body before json decoding
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com >
test: add wait step
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com >
---------
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com >
2025-12-15 14:45:12 +05:45
Viktor Scharf
9d173f0ea6
api-tests: delete spaces before users ( #1877 )
...
* delete spaces before users
* delete users after deleting spaces
* fix
2025-11-20 09:12:48 +01:00
Viktor Scharf
c916528788
[full-ci] deleted unused step definitions ( #1639 )
...
* deleted unused step definitions
* fix flaky tests. rearange ine numbers
2025-10-10 11:34:43 +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
62a7f79f51
multiTenancyTests ( #1313 )
...
* multiTenancyTests
* fix linter issues
* fix after review
2025-08-08 10:16:57 +02:00
Ralf Haferkamp
a73b125505
tests: expand drive permissions where needed
2025-06-02 16:44:04 +02:00
Viktor Scharf
72fd765b93
delete unnecessary steps from context files
2025-02-05 19:43:12 +01:00
Jörn Friedrich Dreyer
a5c9cbc26e
drop project reference in testsuite headers, copyright and license remain
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2025-01-29 17:20:44 +01:00
Viktor Scharf
9db4693a9e
rebranding tests
2025-01-16 17:39:02 +01:00
Prajwol Amatya
000a4f9fe8
added test to list drives after share has been disabled
2025-01-02 14:26:33 +05:45
pradip
5383e55612
test: change share role Denied to-and-fro role in Personal and Project space
2024-12-31 12:44:46 +05:45
Niraj Acharya
089ccc1ca3
updating lint rules for test code
2024-12-30 09:18:45 +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
Saw-jan
158cede97f
test: check file-parent id in shares propfind
2024-12-11 11:25:45 +05:45
amrita
e83b63ffe6
rename variable name and remove unwanted function
2024-12-02 16:53:12 +05:45
amrita
e76ba90bee
remove getResponseXml
2024-12-02 16:51:51 +05:45
Sawjan Gurung
2e40f9905c
Merge pull request #10523 from owncloud/ocm-test-shared-file
...
[tests-only][full-ci] adding test for editing shared file(OCM) by the share receiver
2024-11-28 14:18:36 +05:45
amrita
62b314dc91
add test for template
2024-11-28 10:44:44 +05:45
Niraj Acharya
4f8fd47058
adding test for editing shared file(OCM) by the share receiver
2024-11-28 09:21:41 +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
pradip
0baccb922a
test(refactor): change the structure of When step while moving, copying and renaming
2024-11-19 17:17:59 +05:45
pradip
8b9da7ba29
test(refactor): change the structure of destinations to make it more readable
2024-11-13 17:04:24 +05:45
prashant-gurung899
84019acc3a
add test to check move activities using file-id
...
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com >
2024-11-13 11:28:24 +05:45
prashant-gurung899
d2af9fe20d
add test to check file rename activity using file-id
...
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com >
2024-10-23 15:03:16 +05:45
Saw-jan
766ad4b40c
ci: make remote.php default
...
docs: add documentation
test: rename uniquePath to suffixPath
2024-10-21 17:08:25 +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
ca76f79be3
test: get necessary contexts properly
2024-10-08 15:17:44 +05:45
Saw-jan
286e578314
test: use existing method to get space
2024-10-07 15:03:16 +05:45
Niraj Acharya
db844fb5ab
removing SPACE_ID_FROM_OCIS from test code
2024-10-03 09:08:10 +05:45
Saw-jan
c685229c8d
test: add test coverage for #9933
2024-10-02 14:51:28 +05:45
Saw-jan
ca82ac03fc
test: allow multiple xpaths checks
2024-10-02 13:37:34 +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
d8d7b700cd
reorganize test folders within the acceptance directory
...
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com >
2024-08-28 14:54:45 +05:45