getsentry / sentry-kubernetes

Kubernetes event reporter for Sentry
Apache License 2.0
458 stars 64 forks source link

tests: add test cronjob manifests for errors and delays #70

Closed Jiahui-Zhang-20 closed 9 months ago

Jiahui-Zhang-20 commented 9 months ago

Previously: We did not have cronjob manifests that tested tasks of variable durations that either succeeded or failed.

Now:

We created new manifests to test the following cases:

cronjob-late-success: similar to cronjob-basic-success but the task first sleeps for an interval between 0 seconds to 60 seconds. This tests how Crons registers the late checkin during exit.

cronjob-maybe-error: this task either errors or succeeds with equal chance

cronjob-late-maybe-error: this task also has variable duration but may either succeed or error with equal chance