Fixed workflow integration tests
This commit is contained in:
@@ -151,7 +151,7 @@ func TestTriggerCreateFull(t *testing.T) {
|
||||
WorkflowID: wf.ID,
|
||||
ResourceType: "wf-full-test",
|
||||
Enabled: true,
|
||||
Input: expr.RVars{}.Vars(),
|
||||
Input: &expr.Vars{},
|
||||
OwnedBy: 42,
|
||||
}
|
||||
)
|
||||
@@ -184,7 +184,6 @@ func TestTriggerCreateFull(t *testing.T) {
|
||||
h.allow(types.AutomationRBACResource, "triggers.search")
|
||||
|
||||
h.apiInit().
|
||||
Debug().
|
||||
Get(fmt.Sprintf("/triggers/%d", output.ID)).
|
||||
Header("Accept", "application/json").
|
||||
Expect(t).
|
||||
|
||||
@@ -184,15 +184,10 @@ func TestWorkflowCreateFull(t *testing.T) {
|
||||
Trace: true,
|
||||
KeepSessions: 10000,
|
||||
Scope: expr.RVars{"foo": expr.Must(expr.NewString("bar"))}.Vars(),
|
||||
Steps: types.WorkflowStepSet{
|
||||
{ID: 1, Kind: types.WorkflowStepKindVisual, Meta: types.WorkflowStepMeta{Visual: map[string]interface{}{"foo": "bar"}}},
|
||||
{ID: 2, Kind: types.WorkflowStepKindVisual},
|
||||
},
|
||||
Paths: types.WorkflowPathSet{
|
||||
{ParentID: 1, ChildID: 2, Meta: types.WorkflowPathMeta{Visual: map[string]interface{}{"foo": "bar"}}},
|
||||
},
|
||||
RunAs: 42,
|
||||
OwnedBy: 42,
|
||||
Steps: types.WorkflowStepSet{},
|
||||
Paths: types.WorkflowPathSet{},
|
||||
RunAs: 42,
|
||||
OwnedBy: 42,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user