Files
tasks/chasm/lib/tests/library.go
Yichao YangandGitHub f561a0a77e CHASM: Test payload store and functional tests (#7998)
## 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)
2025-07-03 15:47:57 -07:00

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{},
),
}
}