kyma
kyma copied to clipboard
Jetstream Controller-Integration Test improvements
Description
Changes in the PR:
- This PR introduces the testing changes introduced in https://github.com/kyma-project/kyma/pull/14742 since the PR is on hold for now.
This PR also adds several improvements to the controller integration testing in general:
- Make testing more resilient by using
Eventually
- Print a description then a gingko matcher fails
- Add the support to check for NATS subscriptions with every possible event-type and not only hardcoded to order.created.v1 event type
- Add logs to the table tests to make it easier to understand in which step a matcher failed
- Fixes the problem
test executed panic(nil) or runtime.Goexit: subtest may have called FailNow on a parent test
Related issue(s)
See Also https://github.com/kyma-project/kyma/issues/14152