feat: expose workflow runtime through HTTP and Go SDK
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
|
||||
core "git.yuntuo.hk/k2safe/orbit/model"
|
||||
"git.yuntuo.hk/k2safe/orbit/platform/auth"
|
||||
"git.yuntuo.hk/k2safe/orbit/pulse/service"
|
||||
)
|
||||
|
||||
type captureStore struct {
|
||||
@@ -28,6 +29,10 @@ func (s *captureStore) Steps(context.Context, auth.Token, core.ID) (StepsView, e
|
||||
s.calls++
|
||||
return StepsView{}, nil
|
||||
}
|
||||
func (s *captureStore) Step(context.Context, auth.Token, core.ID, string) (StepDetail, error) {
|
||||
s.calls++
|
||||
return StepDetail{}, nil
|
||||
}
|
||||
func TestAdmissionBoundaryPreservesExactInput(t *testing.T) {
|
||||
store := &captureStore{}
|
||||
api := New(store)
|
||||
@@ -57,3 +62,12 @@ func TestAdmissionBoundaryPreservesExactInput(t *testing.T) {
|
||||
t.Fatal("missing identity accepted")
|
||||
}
|
||||
}
|
||||
|
||||
func (s *captureStore) ListOperations(context.Context, auth.Token, core.ID, service.HistoryPageInput) (OperationPage, error) {
|
||||
s.calls++
|
||||
return OperationPage{}, nil
|
||||
}
|
||||
func (s *captureStore) GetOperation(context.Context, auth.Token, core.ID, core.ID) (OperationView, error) {
|
||||
s.calls++
|
||||
return OperationView{}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user