Commit Graph

3656 Commits

Author SHA1 Message Date
Ilja Neumann ca1fa005a6 Return BadRequestError instead of InternalServerError
Apparently InternalServer errors are not returned back by the handler
2020-10-15 18:00:08 +02:00
A.Unger da70231338 whatever dude 2020-10-15 17:08:16 +02:00
A.Unger beade6b8c0 WIP fix tests 2020-10-15 16:18:26 +02:00
A.Unger 019b1070df assign users to default users group (gid=30000) on creation 2020-10-15 15:43:10 +02:00
A.Unger d5c5e519ba fix TestCreateExistingUser test 2020-10-15 15:43:10 +02:00
A.Unger 97da31627f refactor test suite 2020-10-15 15:43:10 +02:00
Benedikt Kulmann 441e7156f4 Add note regarding rollback 2020-10-15 15:43:10 +02:00
Benedikt Kulmann f6d3425de8 Create default group for new accounts 2020-10-15 15:43:10 +02:00
Benedikt Kulmann f3f9c3d9fb Add rollback for CreateGroup when indexing fails 2020-10-15 15:43:10 +02:00
Benedikt Kulmann 37dc6c7db9 Rollback account creation on error 2020-10-15 15:43:10 +02:00
Benedikt Kulmann ec84d7886a Fix allowing predefined values in autoincrement index 2020-10-15 15:43:10 +02:00
A.Unger c460908e44 add lower and upper bound to config 2020-10-15 15:43:08 +02:00
A.Unger 6928a9c409 add bounds to index 2020-10-15 15:40:13 +02:00
Benedikt Kulmann 6d39cedf08 Add failing test for indexer on autoincrement index 2020-10-15 15:36:06 +02:00
Benedikt Kulmann d578a2603a Fix service user 2020-10-15 15:36:06 +02:00
Benedikt Kulmann 629561833a Write uid and gid from autoincrement index into accounts/groups 2020-10-15 15:36:04 +02:00
Benedikt Kulmann 6ac2e2669c Copy functions of unique index to autoincrement index of disk package 2020-10-15 15:33:18 +02:00
Benedikt Kulmann 75c7a6e3df Copy functions of unique index to autoincrement index of cs3 package 2020-10-15 15:33:18 +02:00
Benedikt Kulmann 19f1fd11c4 Align order of cuntions with index interface 2020-10-15 15:33:18 +02:00
Benedikt Kulmann 6c4ce0d53c Fix PK in cs3 tests 2020-10-15 15:33:18 +02:00
Benedikt Kulmann 8abdb833d4 Implement Add for cs3 autoincrement index 2020-10-15 15:33:18 +02:00
A.Unger 5bdb94e92d first draft autoincrement cs3 apis 2020-10-15 15:33:18 +02:00
A.Unger b61f123cd7 first draft implementation of an autoincremental index 2020-10-15 15:33:18 +02:00
Ilja Neumann c9f0cdd256 Disable ACCOUNTS_DATA_PATH 2020-10-14 19:07:56 +02:00
Ilja Neumann f272bb243b Add STORAGE_STORAGE_METADATA_ROOT 2020-10-14 18:40:14 +02:00
Ilja Neumann 3aa10fa8f0 Fix lint 2020-10-14 18:03:52 +02:00
Ilja Neumann f651303866 Fix id or samaccount query 2020-10-14 18:03:52 +02:00
Ilja Neumann 20e3bd0826 Disable DISK_PATH temporarily 2020-10-14 18:03:52 +02:00
Ilja Neumann 199ad32e04 Temporarily disable groups query 2020-10-14 18:03:52 +02:00
Ilja Neumann 98ed583b89 Add or query to query regexes 2020-10-14 18:03:52 +02:00
Ilja Neumann 8bcf5d4096 Add startswith(id,...) query for group 2020-10-14 18:03:52 +02:00
Ilja Neumann c31732872d Don't add empty values to the index 2020-10-14 18:03:52 +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
Ilja Neumann 0ca3a10daf Remove bleave provider and tokenizer 2020-10-14 18:03:52 +02:00
Ilja Neumann 9243330ae4 Create random testdata-dir 2020-10-14 18:03:52 +02:00
Ilja Neumann be9b30f0b5 - Reseed in each update-test
- Don't assert in cleanup
2020-10-14 18:03:52 +02:00
Ilja Neumann fd6d80435b Fix ListGroups 2020-10-14 18:03:52 +02:00
Ilja Neumann 05b2acf4a9 staticcheck 2020-10-14 18:03:52 +02:00
Ilja Neumann 29a63532f1 Various test adjustments and fixes 2020-10-14 18:03:52 +02:00
Ilja Neumann 4aa019289b Don't check if symlink is valid, as the target might have already been removed before index update 2020-10-14 18:03:52 +02:00
Ilja Neumann c4df138ac7 Fix groups data-folder 2020-10-14 18:03:52 +02:00
Ilja Neumann aada7ac65d Delete group by entity instead by id 2020-10-14 18:03:52 +02:00
Ilja Neumann 56b88057e8 Delete value directory if it is empty 2020-10-14 18:03:52 +02:00
Ilja Neumann e2f54df24d Pass account instead of id to index delete 2020-10-14 18:03:52 +02:00
Ilja Neumann f11ae963b1 Fix index types 2020-10-14 18:03:52 +02:00
Ilja Neumann 51c853fa23 Make user-listing and querying work + fix lint/vet/staticcheck 2020-10-14 18:03:52 +02:00
Ilja Neumann 69a7491507 Integrate indexer / remove bleve [WIP] 2020-10-14 18:03:52 +02:00
A.Unger 3a08a6eac0 shared helper init function for starting the metadata storage 2020-10-14 18:03:52 +02:00