-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[KEP-0009] feat: add expression based assertions #576
base: main
Are you sure you want to change the base?
Commits on Nov 27, 2024
-
[KEP-0009] feat: add expression based assertions
This PR adds CEL-expression based assertions to `TestAsserts`. See https://github.com/kudobuilder/kuttl/blob/main/keps/0009-expression-based-assertions.md for more details. Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 77c33cd - Browse repository at this point
Copy the full SHA 77c33cdView commit details -
fix: prevent redundant client construction
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for fd5aae1 - Browse repository at this point
Copy the full SHA fd5aae1View commit details -
chore: rename Id->Ref and make linter happy
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0e43475 - Browse repository at this point
Copy the full SHA 0e43475View commit details -
refactor: add method for building resource ref
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for dc2b416 - Browse repository at this point
Copy the full SHA dc2b416View commit details -
chore: add validation for resourceRefs
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2e36db6 - Browse repository at this point
Copy the full SHA 2e36db6View commit details -
chore: make assertion syntax consistent with the KEP
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 52b4835 - Browse repository at this point
Copy the full SHA 52b4835View commit details -
refactor: rename Validate method for
TestResourceRef
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5dcbef9 - Browse repository at this point
Copy the full SHA 5dcbef9View commit details
Commits on Dec 3, 2024
-
chore: pre-build environment and program for expressions
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a7e5287 - Browse repository at this point
Copy the full SHA a7e5287View commit details -
chore: make linter happy and initialize Programs only if assertions a…
…re present Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a85752a - Browse repository at this point
Copy the full SHA a85752aView commit details -
chore: incorporate review comments
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 212b993 - Browse repository at this point
Copy the full SHA 212b993View commit details -
chore: move RunAssertExpressions() to pkg/expressions
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 32ec715 - Browse repository at this point
Copy the full SHA 32ec715View commit details -
refactor: move CEL program loading to a dedicated function
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 65dd813 - Browse repository at this point
Copy the full SHA 65dd813View commit details -
refactor: move program-loading to Step out of LoadPrograms()
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 79c6f84 - Browse repository at this point
Copy the full SHA 79c6f84View commit details
Commits on Dec 4, 2024
-
chore: add tests for
TestResourceRef
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8ac7cb1 - Browse repository at this point
Copy the full SHA 8ac7cb1View commit details -
fix: correct evaluation for
assertAll
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a4ebcef - Browse repository at this point
Copy the full SHA a4ebcefView commit details -
chore: add integration tests for expressions
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f2422ae - Browse repository at this point
Copy the full SHA f2422aeView commit details -
Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e6b22fc - Browse repository at this point
Copy the full SHA e6b22fcView commit details