Fixed workflow integration tests

This commit is contained in:
Denis Arh
2021-03-16 20:42:01 +01:00
parent 8ce11a3376
commit e9ae52eaaf
2 changed files with 5 additions and 11 deletions
+1 -2
View File
@@ -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).
+4 -9
View File
@@ -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,
}
)