Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
mcantelon committed May 14, 2024
1 parent 10dd610 commit 3148fff
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions internal/workflow/preprocessing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ func (s *PreprocessingTestSuite) SetupTest(cfg config.Configuration) {
activities.NewMetadataValidationActivity().Execute,
temporalsdk_activity.RegisterOptions{Name: activities.MetadataValidationName},
)
s.env.RegisterActivityWithOptions(
activities.NewCombinePremisActivity().Execute,
temporalsdk_activity.RegisterOptions{Name: activities.CombinePremisName},
)
s.env.RegisterActivityWithOptions(
activities.NewSipCreationActivity().Execute,
temporalsdk_activity.RegisterOptions{Name: activities.SipCreationName},
Expand Down Expand Up @@ -91,6 +95,13 @@ func (s *PreprocessingTestSuite) TestExecute() {
).Return(
&activities.MetadataValidationResult{}, nil,
)
s.env.OnActivity(
activities.CombinePremisName,
sessionCtx,
&activities.CombinePremisParams{SipPath: sipPath},
).Return(
&activities.CombinePremisResult{}, nil,
)
s.env.OnActivity(
activities.SipCreationName,
sessionCtx,
Expand Down

0 comments on commit 3148fff

Please sign in to comment.