Repository navigation
Integration tests - Starting to share with custom groups - #26
Conversation
There was a problem hiding this comment.
Why not simply And file "welcome.txt" of user "user0" is shared with group "sharing-group" ?
There was a problem hiding this comment.
Because it is the simplest example, I like to have the simplest as a call to the api and make that abstract in the next test.
|
Maybe the file "welcome.txt" doesn't exist ? Are skeleton files copied when running integration tests from apps ? |
|
Ah right, they don't have the skeleton. Missing this |
Problem with the group names. They have as name customgroup_X, being X an autoincremental value. We should avoid this. @PVince81 is this a bug in the app? Not sure if this is the displayname, but if that is the case, should we set a display name after creation? |
|
Ah yes, this is by design. I needed an internal group id that doesn't conflict with any other user backends so it's "customgroups_" + numeric id of the custom group. The display name is used in the sharing dialog. Now considering that the "uri" of a custom group is supposed to be unique, I could replace the autoincrement value with the uri. So the id would become "customgroups_sharing-group". Note that the "uri" is specified at creation time and can never change even on rename (like for CalDAV). Would that make sense ? |
|
If two users want to have each a custom group called "somestring", they won't be able to do that with this approach? the uri for the custom group of the first user would be "customgroups_somestring" but what about the second? |
|
The client needs to contain logic to check for duplicates. I had to implement that logic into the frontend code... Webdav fun... |
|
Now using uri field for compoung group backend id ba84877 (@jvillafanez @DeepDiver1975 FYI) The test now passes locally. |
|
@jvillafanez @DeepDiver1975 please review this change |
|
Code looks good so far. |
|
looks like I missed some stuff. |
a95aa6b to
228f3d6
Compare
|
Rebased to get the pagination changes in as well. @SergioBertolinSG if all tests pass now I suggest we merge this before continuing. I want to have the uri stuff on master. |
|
Fixed role filter calls |
|
Merged now. @SergioBertolinSG please do a separate PR for your new tests. Let's hope you won't find any new issues 😉 |
@PVince81 The starting test case is failing, something not working or the test is not correct?.