Skip to content

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Rammer <[email protected]>
  • Loading branch information
hamersaw committed Oct 14, 2024
1 parent a2b9ef4 commit c95a159
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ func Test_dynamicNodeHandler_buildContextualDynamicWorkflow_withLaunchPlans(t *t
},
},
},
Spec: &admin.LaunchPlanSpec{
FixedInputs: &core.LiteralMap{},
},
}, nil)
h := &mocks6.TaskNodeHandler{}
n := &mocks.Node{}
Expand Down Expand Up @@ -251,6 +254,9 @@ func Test_dynamicNodeHandler_buildContextualDynamicWorkflow_withLaunchPlans(t *t
},
},
},
Spec: &admin.LaunchPlanSpec{
FixedInputs: &core.LiteralMap{},
},
}, nil)
h := &mocks6.TaskNodeHandler{}
n := &mocks.Node{}
Expand Down Expand Up @@ -320,6 +326,9 @@ func Test_dynamicNodeHandler_buildContextualDynamicWorkflow_withLaunchPlans(t *t
},
},
},
Spec: &admin.LaunchPlanSpec{
FixedInputs: &core.LiteralMap{},
},
}, nil)
h := &mocks6.TaskNodeHandler{}
n := &mocks.Node{}
Expand Down Expand Up @@ -403,6 +412,9 @@ func Test_dynamicNodeHandler_buildContextualDynamicWorkflow_withLaunchPlans(t *t
},
},
},
Spec: &admin.LaunchPlanSpec{
FixedInputs: &core.LiteralMap{},
},
}, nil)
h := &mocks6.TaskNodeHandler{}
n := &mocks.Node{}
Expand Down Expand Up @@ -496,7 +508,7 @@ func Test_dynamicNodeHandler_buildContextualDynamicWorkflow_withLaunchPlans(t *t
composedPBStore.OnWriteRawMatch(
mock.MatchedBy(func(ctx context.Context) bool { return true }),
storage.DataReference("s3://my-s3-bucket/foo/bar/futures_compiled.pb"),
int64(1501),
int64(1892),
storage.Options{},
mock.MatchedBy(func(rdr *bytes.Reader) bool { return true })).Return(errors.New("foo"))

Expand Down Expand Up @@ -545,6 +557,9 @@ func Test_dynamicNodeHandler_buildContextualDynamicWorkflow_withLaunchPlans(t *t
},
},
},
Spec: &admin.LaunchPlanSpec{
FixedInputs: &core.LiteralMap{},
},
}, nil)

h := &mocks6.TaskNodeHandler{}
Expand Down
4 changes: 4 additions & 0 deletions flytepropeller/pkg/controller/nodes/resolve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ func (d *dummyBaseWorkflow) FindSubWorkflow(subID v1alpha1.WorkflowID) v1alpha1.
return nil
}

func (d *dummyBaseWorkflow) FindLaunchPlan(refID v1alpha1.LaunchPlanRefID) v1alpha1.ExecutableLaunchPlan {
return nil
}

func (d *dummyBaseWorkflow) GetExecutionStatus() v1alpha1.ExecutableWorkflowStatus {
return nil
}
Expand Down

0 comments on commit c95a159

Please sign in to comment.