Frederic BIDON
dee3a10bac
test(utils): introduced internal/testutils package to factorize testing utilities
...
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com >
Conflicts:
core/pkg/hostsensorutils/hostsensordeploy_test.go
2023-03-24 11:15:25 +01:00
Frederic BIDON
d8f1a25ab7
generated rego policy json fixture file, short-circuited call to github when fixture is here
...
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
2023-02-10 17:29:46 +01:00
Frédéric BIDON
e37049f68e
fix ListFrameworks (could return an empty element)
...
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com >
2023-01-20 17:26:27 +02:00
Frederic BIDON
773e43b1e1
refact(getter): refactored loadpolicy
...
* feat: added support for ListControls and GetFrameworks
* perf: introduced jsoniter unmarshalling for faster decoding
* introduced stricted error handling & predefined errors:
* suppressed edge cases when a flaky value is returned instead of an error
* added full unit tests of LoadPolicy
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
2023-01-09 14:48:18 +01:00
Frederic BIDON
e6dc7c2367
added unit tests to load policy getter
...
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
2023-01-06 12:56:40 +01:00
Frederic BIDON
668514e08d
commented currently unused code
...
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
2023-01-06 09:32:17 +01:00
dwertent
d0e2730518
add cautils to core
2022-03-13 18:14:48 +02:00