mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? - Add a test payload store implementation - Setup CHASM functional test suite ## Why? - Have E2E coverage for CHASM framework ## How did you test it? - [x] built - [x] run locally and tested manually - [ ] covered by existing tests - [ ] added new unit test(s) - [x] added new functional test(s)
37 lines
742 B
Go
37 lines
742 B
Go
package tests
|
|
|
|
import "go.temporal.io/server/chasm"
|
|
|
|
type (
|
|
library struct {
|
|
chasm.UnimplementedLibrary
|
|
}
|
|
)
|
|
|
|
var Library = &library{}
|
|
|
|
func (l *library) Name() string {
|
|
return "tests"
|
|
}
|
|
|
|
func (l *library) Components() []*chasm.RegistrableComponent {
|
|
return []*chasm.RegistrableComponent{
|
|
chasm.NewRegistrableComponent[*PayloadStore]("payloadStore"),
|
|
}
|
|
}
|
|
|
|
func (l *library) Tasks() []*chasm.RegistrableTask {
|
|
return []*chasm.RegistrableTask{
|
|
chasm.NewRegistrablePureTask(
|
|
"payloadTTLPureTask",
|
|
&PayloadTTLPureTaskValidator{},
|
|
&PayloadTTLPureTaskExecutor{},
|
|
),
|
|
chasm.NewRegistrableSideEffectTask(
|
|
"payloadTTLSideEffectTask",
|
|
&PayloadTTLSideEffectTaskValidator{},
|
|
&PayloadTTLSideEffectTaskExecutor{},
|
|
),
|
|
}
|
|
}
|