Commit Graph

67 Commits

Author SHA1 Message Date
Benedikt Kulmann
e7c69cd6a7 Make linter happier 2020-08-27 15:52:55 +02:00
Benedikt Kulmann
0f9e141699 Add filtering by bundleID to listing roles and bundles 2020-08-27 15:42:19 +02:00
Benedikt Kulmann
5d89f7db8a Add permission endpoint for extracting one permission from a set of roleIds 2020-08-27 15:41:00 +02:00
Artur Neumann
b587a0c512 refactor tests 2020-08-27 11:08:16 +05:45
Artur Neumann
3b9040aaf7 test set permission on bundle & setting at the same time 2020-08-27 10:25:41 +05:45
Artur Neumann
34b87f6de2 test List/Get Bundles with per setting permissions 2020-08-26 12:36:32 +05:45
Artur Neumann
11a8048fcb test list bundle with not-matching roles 2020-08-26 11:58:54 +05:45
Artur Neumann
459b5f5db1 adjust list bundles test expectations 2020-08-26 11:36:41 +05:45
Artur Neumann
442cae6cb9 get bundle with insuficiant permissions tests 2020-08-26 11:21:53 +05:45
Artur Neumann
4d3a0f1adb test list filtered bundles 2020-08-26 11:15:27 +05:45
Artur Neumann
63bacfb0cd goimport files 2020-08-26 09:11:29 +05:45
Benedikt Kulmann
2701f06fa9 Introduce proper setup and teardown steps in grpc tests 2020-08-25 21:17:54 +02:00
Benedikt Kulmann
3a81d0335a Use metadata context for account uuid 2020-08-25 16:39:25 +02:00
Benedikt Kulmann
8b2c4f81cf Skip asserts when NoError failed 2020-08-25 11:43:06 +02:00
Artur Neumann
27cffac1de set uuid for getbundle tests 2020-08-25 13:13:01 +05:45
Artur Neumann
de4855d632 delete UUIDs 2020-08-25 10:46:23 +05:45
Benedikt Kulmann
3847b3388b Remove accountUUID from bundle requests 2020-08-24 17:23:21 +02:00
Benedikt Kulmann
d0f6ec2ebc Use permissions to restrict GetBundle call 2020-08-24 17:15:58 +02:00
Benedikt Kulmann
136bb5eab4 Add operations WRITE and READWRITE 2020-08-24 16:51:33 +02:00
Benedikt Kulmann
5fb1a8a2bb Add endpoint for listing permissions for a resource 2020-08-24 16:50:28 +02:00
Artur Neumann
c9402b8c95 SaveValue tests 2020-08-24 15:59:48 +05:45
Artur Neumann
41db407b98 recreate data store before test run 2020-08-24 10:08:58 +05:45
Artur Neumann
0c1146ea1b make lint happy 2020-08-21 17:29:03 +02:00
Artur Neumann
538e7a74f8 adjust error expectation in tests 2020-08-21 17:29:03 +02:00
Artur Neumann
c5454c1bb0 ListRoles tests 2020-08-21 17:29:02 +02:00
A.Unger
eb713b7a97 use micro error codes and id 2020-08-20 15:49:16 +02:00
A.Unger
e510229bc1 remove commented lines (OCIS-363) 2020-08-19 16:20:24 +02:00
A.Unger
e93a42fb83 use proper error assertion (OCIS-363) 2020-08-19 16:20:16 +02:00
A.Unger
9c8b505a2f adjust tests to deal with handled go-micro error (OCIS-363) 2020-08-19 16:20:00 +02:00
Benedikt Kulmann
5780df7058 Fix endpoint urls 2020-08-19 13:17:09 +02:00
Benedikt Kulmann
65d71bd6fd Add role service and manager 2020-08-19 12:55:11 +02:00
Benedikt Kulmann
143bf118fa Add RoleService and Permission to protobuf 2020-08-19 12:55:10 +02:00
Benedikt Kulmann
42ecee73d9 Fix grpc tests 2020-08-19 10:20:53 +02:00
Benedikt Kulmann
3cb272e76e Switch to uuids and simplify names
- bundles, settings and values now have uuids as identifier
- removed unnecessary name parts (SettingsBundle -> Bundle,
SettingsValue -> Value, ...)
2020-08-19 10:20:51 +02:00
Benedikt Kulmann
33720f2b5a Fix path in go package for generated files 2020-08-19 10:18:46 +02:00
Benedikt Kulmann
17658df8b6 Allow + . and @ in account ids 2020-08-12 15:26:12 +02:00
Vincent Petry
12c1b96f6f Allow any user id format
The user id / account UUID should allow any format as in some cases a regular user name
could be used there.
2020-08-12 14:21:31 +02:00
Benedikt Kulmann
3a100258dc Fix formatting 2020-06-04 12:54:16 +02:00
Benedikt Kulmann
7158f762e0 Add test validating that spaces are allowed in display names. 2020-06-04 11:52:25 +02:00
Benedikt Kulmann
7907ae6708 Add test validating that UTF is allowed in display names 2020-06-04 11:49:02 +02:00
Benedikt Kulmann
6e2fe244ca Reuse dummy settings array 2020-06-04 11:37:36 +02:00
Benedikt Kulmann
baac21505a Use dummySettings on bundle properties test to simplify test scope 2020-06-04 11:30:22 +02:00
Benedikt Kulmann
4691cedb58 Add test validating that settings in a bundle cannot be empty 2020-06-04 10:57:13 +02:00
Benedikt Kulmann
aae6356138 Fix formatting 2020-06-03 13:26:09 +02:00
Benedikt Kulmann
e7d3bb2063 Make get and list side effect free
Previously, Get and List requests could have the side effect of creating
folders. Creating required folders now only happens on save requests.
2020-06-03 13:00:14 +02:00
Benedikt Kulmann
b002720b03 Add validation for DisplayName and Settings being required in SettingsBundles 2020-06-03 12:43:32 +02:00
Benedikt Kulmann
cdafe48a62 Fix tests for invalid identifiers 2020-06-03 12:02:26 +02:00
Benedikt Kulmann
718ec8e061 Set up input validation for Identifiers on settings bundles
Implemented first input validation steps by making static validation on
identifiers in settings bundle requests.
2020-06-03 10:50:28 +02:00
Artur Neumann
a922961f12 make staticcheck happy 1 2020-06-02 13:33:55 +02:00
Artur Neumann
72cfd4a89f gprc tests 2020-06-02 13:33:54 +02:00