Dhaval Shah
|
fce35b91d2
|
[Bugbash] Kceu22 bugbash/fix staticcheck warnings (#3917)
* cleanup: error string formating
Fixes Staticcheck ST1005
KubeCon EU 2022 BugBash
Signed-off-by: Dhaval Shah <30974879+dhavalgshah@users.noreply.github.com>
* cleanup: merge var declaration with assignment
Fixes staticcheck S1021
Kubecon EU 2022 Bugbash
Signed-off-by: Dhaval Shah <30974879+dhavalgshah@users.noreply.github.com>
* cleanup normalize yoda condition to simple compare
fixes staticcheck ST1017
Signed-off-by: Dhaval Shah <30974879+dhavalgshah@users.noreply.github.com>
* cleanup: remove extraneous err param on executeTest
err is not used anywhere except to throw Fatal inside execureTest()
fix staticcheck SA4009
Signed-off-by: Dhaval Shah <30974879+dhavalgshah@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Sambhav Kothari <sambhavs.email@gmail.com>
Signed-off-by: Dhaval Shah <30974879+dhavalgshah@users.noreply.github.com>
* fix: match validation error message to actual errors
Signed-off-by: Dhaval Shah <30974879+dhavalgshah@users.noreply.github.com>
* cleanup: more of normalize validation error messages
Signed-off-by: Dhaval Shah <30974879+dhavalgshah@users.noreply.github.com>
* cleanup: additional error message formatting fixes
Signed-off-by: Dhaval Shah <30974879+dhavalgshah@users.noreply.github.com>
Co-authored-by: Sambhav Kothari <sambhavs.email@gmail.com>
|
2022-05-14 22:04:35 +01:00 |
|
Jim Bugwadia
|
5b5a85c16a
|
change RuleStatus values to lowercase
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
|
2021-09-30 00:04:13 -07:00 |
|
Jim Bugwadia
|
67660647d9
|
update tests
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
|
2021-09-26 18:30:53 -07:00 |
|
Valentin Velkov
|
63f4c9a884
|
Configurable success events on policies & resources. Generating failure events on policies by default. (#1939)
* Remove unused event.Reason const
Signed-off-by: Velkov <valentin.velkov@sap.com>
* Generate failure events on policies
Signed-off-by: Velkov <valentin.velkov@sap.com>
* Generate success events on policy
Signed-off-by: Velkov <valentin.velkov@sap.com>
* Introduce 'generateSuccessEvents' flag
Signed-off-by: Velkov <valentin.velkov@sap.com>
* Unit tests & chart fix
Signed-off-by: Velkov <valentin.velkov@sap.com>
|
2021-06-29 14:43:11 -07:00 |
|
Jim Bugwadia
|
6afd2e6f3a
|
ignore non-policy files in CLI and improve validation messages (#1362)
* improve validation message
* improve error behaviors
* fix tests
* fix tests
|
2020-12-07 11:26:04 -08:00 |
|
Shuting Zhao
|
ea66d7a7b8
|
fix CI
|
2020-05-20 13:58:56 -07:00 |
|
Shivkumar Dudhani
|
ffe3bdb677
|
remove newline from engine response strings (#537)
* remove newline from engine response strings
* add scenario file updates
* cr: remove . in trailing msg string
|
2019-12-04 18:04:42 -08:00 |
|
Shuting Zhao
|
ec331b8d17
|
remove resource info in the validation error
|
2019-11-07 12:30:58 -08:00 |
|
Shuting Zhao
|
a30b8a604d
|
update format
|
2019-11-07 12:13:35 -08:00 |
|
Shuting Zhao
|
de9ebd899b
|
improve validation error message; update scenario files
|
2019-11-07 12:13:34 -08:00 |
|
shivkumar dudhani
|
a191bd67f4
|
update message string
|
2019-11-01 15:21:23 -07:00 |
|
shivkumar dudhani
|
4e5f551fa7
|
clean up
|
2019-10-14 14:10:34 -07:00 |
|