3
0
Commit Graph

84 Commits

Author SHA1 Message Date
Tomaž Jerman
43fe13a128 Add integration tests for record ctx roles 2021-10-01 10:08:58 +02:00
Vivek Patel
b342ec91d8 Fixes token generation in integration test 2021-10-01 10:08:58 +02:00
Vivek Patel
a9c762aacc Fix integration tests
- Extends helper for integration test with token generation
2021-09-24 19:24:00 +05:30
Tomaž Jerman
f7922d9736 Add support for namespace clone, export, import 2021-09-23 13:05:08 +02:00
Denis Arh
92f225654c Fix access token handling in integration test 2021-09-22 21:23:42 +02:00
Denis Arh
9e87b43b33 Enforce mode & level for debug logger, cleanup test logging init 2021-09-02 15:14:08 +02:00
Denis Arh
af09848dd8 Fix tests (use translation keys) 2021-08-23 19:10:21 +02:00
Tomaž Jerman
a2b964c53e Remove AC from ComposeRecord import 2021-07-15 14:29:30 +02:00
Denis Arh
92d2de8639 Add *.search RBAC ops check 2021-07-12 08:58:24 +02:00
Denis Arh
20e05280b3 System wide RBAC changes 2021-07-08 11:42:18 +02:00
Denis Arh
b923953ca5 Removing superuser logic 2021-07-08 11:24:12 +02:00
Denis Arh
6a6f74d4a6 Refactored resource/role logic 2021-07-08 11:22:11 +02:00
Vivek Patel
afba9a6364 Fixes attachment integration test 2021-07-04 20:00:03 +05:30
Vivek Patel
537791389e Adds integration tests for compose, system and automation 2021-07-02 17:57:51 +05:30
Tomaž Jerman
ee850124f6 Sanitize text record values 2021-06-22 09:39:26 +02:00
Tomaž Jerman
02c6345e8e Add tests for field-level access control 2021-06-08 14:16:22 +02:00
Tomaž Jerman
90cb471481 Fix compose record update on modules with deleted fields 2021-06-08 11:45:50 +02:00
Tomaž Jerman
a429e1c71c Fix module field default value validation 2021-06-01 12:49:54 +02:00
Tomaž Jerman
53cf96848a Tweak ComposeRecord exporting
* Fix pagination cursors
* Use service functions for AC
* Add tests
2021-05-10 10:53:13 +02:00
Tomaž Jerman
eb79b192be Fix record ref updates 2021-03-31 10:16:26 +02:00
Tomaž Jerman
28aa9b3744 Tweak default compose record value logic 2021-03-22 08:16:17 +01:00
Tomaž Jerman
d14573b503 Test tweaks 2021-03-19 08:48:58 +01:00
Tomaž Jerman
6bc4f1102d Fix record report operations over floating point numbers 2021-03-16 16:31:42 +01:00
Tomaž Jerman
c3be43ed51 Fix module field removal logic 2021-03-05 10:42:35 +01:00
Tomaž Jerman
398c9449cc Rework compose record import/export
- Tweak importing to avoid record service
- Rework record export to use Envoy
2021-02-24 15:57:44 +01:00
Denis Arh
53be013377 Implement new auth UI, deprecate auth API endpoints 2021-02-23 07:34:10 +01:00
Denis Arh
01a7aa6526 Remove .With(ctx) pattern 2021-01-25 18:05:24 +01:00
Denis Arh
46620d46a9 Fix record-value storing issues
Under certain conditions, values did not get removed/saved properly
2020-12-10 13:20:43 +01:00
Denis Arh
4fd7ee27b8 Add CRUD tests for field expr 2020-11-30 20:31:02 +01:00
Denis Arh
b82ddad83a Implement support for labels on compose resources 2020-11-06 08:32:42 +01:00
Denis Arh
fc74d44563 go vet fixes 2020-11-05 19:57:47 +01:00
Denis Arh
eca90b1fc1 Fix record update with update-denied fields
Scenario:
 - values already exist on the record
 - record is updated with users that can not update all fields
 - only values for updatable fields are provided

Access control was moved from generalValueSetValidation to procCreate/procUpdate
to allow return of record value error set.

Existing values from fields with update-deny set are copied to updating set
to ensure proper handling by RVS's Merge fn().
2020-11-05 10:39:25 +01:00
Denis Arh
ed8fc547f7 Config. environment (throughenv var 'ENVIRONMENT') 2020-11-04 15:13:27 +01:00
Denis Arh
ecb7f52c31 Improve error creation & handling by API 2020-11-04 14:18:33 +01:00
Denis Arh
7508659165 RBAC refactored (pkg renamed, init improved) 2020-09-18 07:56:58 +02:00
Denis Arh
3a7cc105d0 Renamed temp ng-store variables to store 2020-09-16 07:37:06 +02:00
Denis Arh
5e55340759 Renamed pkg/store to pkg/objstore (Object Store) 2020-09-16 07:37:06 +02:00
Denis Arh
edbeb57f48 Fix ordering records by values, record organizer 2020-09-09 13:11:11 +02:00
Denis Arh
be76207e50 Fix compose integration tests 2020-09-08 14:51:19 +02:00
Denis Arh
f64bf4673e Ported pkg/rh to pkg/filter and removed obsolete code 2020-09-06 16:33:57 +02:00
Denis Arh
f7070b4fa5 Fix tests, improve constraint checking 2020-09-06 15:37:19 +02:00
Denis Arh
361a9007bf Cleaner store API 2020-08-26 14:49:33 +02:00
Denis Arh
8ac6c17ea8 Rename generated interfaces (for easier ext.) 2020-08-24 15:41:01 +02:00
Denis Arh
c8d552e6a6 Implement new store infrastructure 2020-08-24 15:40:15 +02:00
Denis Arh
239d6fc429 Remove request dump assert utility from tests 2020-06-29 15:53:36 +02:00
Denis Arh
d18d679b63 Add perm. check for record value field update 2020-06-20 17:58:19 +02:00
Denis Arh
1397e8eeb5 Simplify db connection handling
Due to incompatibilities with update of github.com/titpetric/factory,
we are crippeling db connection handling (MustGet fn) - only supporting
one ("default") connection
2020-06-19 12:44:14 +02:00
Denis Arh
288e516986 Fix bulk ops logic & (record value) error handling 2020-05-29 15:52:42 +02:00
Denis Arh
e8212ec8ff Add action log for bulk op, fix tests 2020-05-29 06:49:22 +02:00
Tomaž Jerman
ab2e76dd22 Add support for batch record operations
Allows us to perform multiple operations with a single request
under the same transaction.
2020-05-28 23:40:21 +02:00