Commit Graph

69 Commits

Author SHA1 Message Date
Jörn Friedrich Dreyer f1d970145b implement add group
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer aac932b6e0 fix tons of ocs tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer fc9cdf3bc8 fix nil reference
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Benedikt Kulmann 117959e4ac update go.mod/sum from running ocis 2020-11-05 13:06:05 +01:00
Benedikt Kulmann b622e18f9a Fix role service mock 2020-11-05 13:06:05 +01:00
Benedikt Kulmann 59be0d02c6 Use roleIDs instead of permissionIDs in tests 2020-11-05 13:06:05 +01:00
Benedikt Kulmann 3e0eb3edc2 Fix staticcheck 2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 7c7cefef9e mock roles and settings, mint token
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer f4116b2318 ocs v2 appframework quirks
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer c3d8a5bf51 ocs: allow users to look up other users
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer abce279355 allow self updating
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 1e02105101 ocs: enable/disable users
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer b16f0d4d2c fix typo
Co-authored-by: Phil Davis <phil@jankaritech.com>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer cac8f2ef04 distinguish badrequest and conflict / already exists errors
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 538e2df026 partly fix unit tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 6f46e1bccb use the account.id as ocis userid, tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 8af7d0979e adjust tests, add stubs
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 8e39d8b873 actually check permissions to fix tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
A.Unger f17b153557 update test reflect hardcoded values 2020-11-03 16:10:05 +01:00
A.Unger 6cd48e711f fix linter 2020-10-22 14:22:58 +02:00
A.Unger 69ce603a83 fix failing scenario 2020-10-22 14:15:13 +02:00
A.Unger 9d4a8ac52f make list group users work with uuid and usernames 2020-10-22 13:10:06 +02:00
A.Unger e0f59034cf fix test scenario when getting user default groups 2020-10-22 12:50:09 +02:00
Benedikt Kulmann 0403264aef Fix tests for adding users to group in OCS 2020-10-22 12:44:44 +02:00
Benedikt Kulmann 1d66c22fc1 Fix other OCS group queries to use the account id instead of the username 2020-10-22 12:36:55 +02:00
A.Unger 66e6673714 fix groups endpoint 2020-10-22 12:25:43 +02:00
Benedikt Kulmann 66894b9360 Fix test behaviour for empty displaynames in user provisioning 2020-10-21 16:58:05 +02:00
A.Unger 4033ba887d set account displayname fallback to userid if not present 2020-10-21 15:14:00 +02:00
Benedikt Kulmann 6d903e8f21 fix OCS tests 2020-10-21 12:26:57 +02:00
Benedikt Kulmann 0991898815 Map userid to on_premises_sam_account_name in ocs 2020-10-21 12:26:57 +02:00
A.Unger 5af28f61b1 update reva@master on ocs 2020-10-21 12:13:14 +02:00
Benedikt Kulmann fead8d7534 Fix OCS test for allowing empty emails on account update 2020-10-19 12:43:52 +02:00
Benedikt Kulmann 2dc659ac56 Fix update user test in OCS 2020-10-15 23:43:43 +02:00
Benedikt Kulmann 63bf5f6ede Fix GID in OCS AddUser response 2020-10-15 23:29:59 +02:00
Benedikt Kulmann 48a1a2819d Fix uid/gid and default group tests in OCS 2020-10-15 23:11:31 +02:00
Ilja Neumann 755bbd7817 Create absolute accounts dir for tests and recreate it on each test 2020-10-14 18:03:52 +02:00
Ilja Neumann f84892a2c2 Fix test to not rely on ordering 2020-10-14 18:03:52 +02:00
Ilja Neumann cc0a141dc6 go fmt 2020-10-14 18:03:52 +02:00
Phil Davis 45716fb121 Refactor svc_test to add constants for repeated strings 2020-10-09 18:44:01 +05:45
Phil Davis 79ded27431 Fix minor typos in svc_test 2020-10-09 16:14:42 +05:45
Phil Davis d41844767d Fix provisioning API groups endpoint 2020-10-09 16:14:42 +05:45
Michael Barz 4b9215b854 Merge pull request #636 from owncloud/enable-ocs-group-tests
[Tests-only] Add ocs http tests for groups endpoints
2020-10-08 12:04:04 +02:00
Michael Barz 6c9840f9df transfer all changelogs from the extensions to the root 2020-10-07 16:33:01 +02:00
Dipak Acharya 127b434577 [Tests-Only] ocs http tests for groups endpoints 2020-10-06 10:39:33 +05:45
Dipak Acharya a81cc71ec5 [Tests-Only] ocs http tests for config and capabilities endpoints 2020-10-06 09:44:16 +05:45
Benedikt Kulmann ff4c802ee2 Merge branch 'master' into extract_storage_layer 2020-10-05 16:43:00 +02:00
Benedikt Kulmann 3081dd1a7b Fix OCS test infrastructure 2020-10-05 15:22:12 +02:00
Phil Davis 142a652b51 Delete README.md from extension folders 2020-10-05 15:53:36 +05:45
Phil Davis d8554a5685 Delete excess .github from extension folders 2020-10-05 15:53:36 +05:45
Phil Davis 8086d78a92 Delete excess .gitignore from extension folders 2020-10-05 15:53:36 +05:45