Open olensmar opened 1 year ago
I want Testkube to run a Test or TestSuite when receiving CDEvents defined at https://cdevents.dev/docs/
For each trigger I want to configure
subject
predicate(s)
For example
cdevent-trigger: subject: service predicates: - deployed fields: - name: id value: service/petstore - name: environment value: "production" testSuite : my-test-suite
Would run the my-test-suite TestSuite if a deployed event is received for the service subject with the specified id and environment - see https://github.com/cdevents/spec/blob/v0.1.1/continuous-deployment-pipeline-events.md#service-deployed
my-test-suite
deployed
service
Testkube would have to listen for these events on an HTTP endpoint that could be targeted by external systems. The events would be received in HTTP binary mode as shown at https://github.com/cdevents/spec/blob/v0.1.1/cloudevents-binding.md#examples
Great stuff, it should also be possible to run Test/suites based on labels.
good point - thanks @TheBrunoLopes - added to description !
I want Testkube to run a Test or TestSuite when receiving CDEvents defined at https://cdevents.dev/docs/
For each trigger I want to configure
subject
- which CDEvent subject to listen forpredicate(s)
- which corresponding predicate(s) to listen forFor example
Would run the
my-test-suite
TestSuite if adeployed
event is received for theservice
subject with the specified id and environment - see https://github.com/cdevents/spec/blob/v0.1.1/continuous-deployment-pipeline-events.md#service-deployedTestkube would have to listen for these events on an HTTP endpoint that could be targeted by external systems. The events would be received in HTTP binary mode as shown at https://github.com/cdevents/spec/blob/v0.1.1/cloudevents-binding.md#examples