CI(tests) Use AssertCommand function in every test #1643
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Feature Request
Short Description
The CI tests have been updated to use the Eventually function in the ginkgo tests, however we need to update all the tests, only KSP tests were updated recently.
Is your feature request related to a problem? Please describe the use case.
Today we might get flakey tests and we would need to have a retry logic for executing commands.
in all of our tests
Describe the solution you'd like
A new AssertCommand function was added recently to the utils package. Use this function instead of the K8sExecInPod() in all of our tests:
KubeArmor/tests/util/kartutil.go
Line 614 in 8ceb083
NOTE: some the the exec operators do not compare/match with anything and are just meant for executing, in that case you can set Matchregexp(".*") wherever matching is not required.
The text was updated successfully, but these errors were encountered: