@@ -502,62 +502,6 @@ func (s *testDaprServer) UnsubscribeConfiguration(ctx context.Context, in *pb.Un
502502 return & pb.UnsubscribeConfigurationResponse {Ok : true }, nil
503503}
504504
505- func (s * testDaprServer ) StartWorkflowBeta1 (ctx context.Context , in * pb.StartWorkflowRequest ) (* pb.StartWorkflowResponse , error ) {
506- if in .GetInstanceId () == testWorkflowFailureID {
507- return nil , errors .New ("test failure" )
508- }
509- return & pb.StartWorkflowResponse {
510- InstanceId : in .GetInstanceId (),
511- }, nil
512- }
513-
514- func (s * testDaprServer ) GetWorkflowBeta1 (ctx context.Context , in * pb.GetWorkflowRequest ) (* pb.GetWorkflowResponse , error ) {
515- if in .GetInstanceId () == testWorkflowFailureID {
516- return nil , errors .New ("test failure" )
517- }
518- return & pb.GetWorkflowResponse {
519- InstanceId : in .GetInstanceId (),
520- WorkflowName : "TestWorkflowName" ,
521- RuntimeStatus : "Running" ,
522- Properties : make (map [string ]string ),
523- }, nil
524- }
525-
526- func (s * testDaprServer ) PurgeWorkflowBeta1 (ctx context.Context , in * pb.PurgeWorkflowRequest ) (* emptypb.Empty , error ) {
527- if in .GetInstanceId () == testWorkflowFailureID {
528- return nil , errors .New ("test failure" )
529- }
530- return & emptypb.Empty {}, nil
531- }
532-
533- func (s * testDaprServer ) TerminateWorkflowBeta1 (ctx context.Context , in * pb.TerminateWorkflowRequest ) (* emptypb.Empty , error ) {
534- if in .GetInstanceId () == testWorkflowFailureID {
535- return nil , errors .New ("test failure" )
536- }
537- return & emptypb.Empty {}, nil
538- }
539-
540- func (s * testDaprServer ) PauseWorkflowBeta1 (ctx context.Context , in * pb.PauseWorkflowRequest ) (* emptypb.Empty , error ) {
541- if in .GetInstanceId () == testWorkflowFailureID {
542- return nil , errors .New ("test failure" )
543- }
544- return & emptypb.Empty {}, nil
545- }
546-
547- func (s * testDaprServer ) ResumeWorkflowBeta1 (ctx context.Context , in * pb.ResumeWorkflowRequest ) (* emptypb.Empty , error ) {
548- if in .GetInstanceId () == testWorkflowFailureID {
549- return nil , errors .New ("test failure" )
550- }
551- return & emptypb.Empty {}, nil
552- }
553-
554- func (s * testDaprServer ) RaiseEventWorkflowBeta1 (ctx context.Context , in * pb.RaiseEventWorkflowRequest ) (* emptypb.Empty , error ) {
555- if in .GetInstanceId () == testWorkflowFailureID {
556- return nil , errors .New ("test failure" )
557- }
558- return & emptypb.Empty {}, nil
559- }
560-
561505func (s * testDaprServer ) ScheduleJobAlpha1 (ctx context.Context , in * pb.ScheduleJobRequest ) (* pb.ScheduleJobResponse , error ) {
562506 return & pb.ScheduleJobResponse {}, nil
563507}
0 commit comments