Commit Graph

61 Commits

Author SHA1 Message Date
Alex Unger 0dfdcd7fb3 Merge pull request #1066 from owncloud/runtime-cleanup 2020-12-11 14:56:38 +01:00
A.Unger 7bba6bcb6a increase log level for missing config on default location to debug 2020-12-11 14:16:51 +01:00
Willy Kloucek 7f986a370d remove last reference 2020-12-11 08:48:32 +01:00
Benedikt Kulmann aaf9029a3e Rename "Cache" middleware to "NoCache" 2020-11-16 22:13:26 +01:00
Alex Unger f90d0d610e Merge pull request #840 from owncloud/ocis-1018
Tweak go-micro behavior
2020-11-12 13:59:12 +01:00
A.Unger 641fd2703a make version command registry aware 2020-11-12 11:53:37 +01:00
Benedikt Kulmann 4059b8e0a0 Fix service name tracing config 2020-11-11 21:08:46 +01:00
A.Unger 951a441f65 cleanup old comments 2020-11-11 15:52:13 +01:00
A.Unger 76c633e650 wip 2020-11-11 11:50:53 +01:00
Jörn Friedrich Dreyer 145671512a hide account.id in ocs api, use username
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-06 17:33:43 +01:00
Jörn Friedrich Dreyer c124102df2 Merge pull request #627 from butonic/add-basic-auth-option
add enable basic auth option and check permissions
2020-11-05 16:36:16 +01:00
Jörn Friedrich Dreyer 76c63ef696 close request bodies
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 99ecc4ea2a fix staticcheck
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
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 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 cfa913e936 adjust ocs 2020-11-04 15:34:44 +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
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