diff --git a/tests/automation/trigger_test.go b/tests/automation/trigger_test.go index c6633e9f9..c759d7d3f 100644 --- a/tests/automation/trigger_test.go +++ b/tests/automation/trigger_test.go @@ -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). diff --git a/tests/automation/workflow_test.go b/tests/automation/workflow_test.go index 088d1f1e8..f37189b22 100644 --- a/tests/automation/workflow_test.go +++ b/tests/automation/workflow_test.go @@ -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, } )