-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8422c8
commit 707c752
Showing
6 changed files
with
63 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ import ( | |
"github.com/smartcontractkit/chainlink-common/pkg/workflows" | ||
"github.com/smartcontractkit/chainlink-common/pkg/workflows/sdk" | ||
"github.com/smartcontractkit/chainlink-common/pkg/workflows/wasm/host" | ||
|
||
"github.com/smartcontractkit/chainlink/v2/core/capabilities/webapi" | ||
gcmocks "github.com/smartcontractkit/chainlink/v2/core/services/gateway/connector/mocks" | ||
ghcapabilities "github.com/smartcontractkit/chainlink/v2/core/services/gateway/handlers/capabilities" | ||
|
@@ -973,26 +974,26 @@ func TestEngine_Error(t *testing.T) { | |
}{ | ||
{ | ||
name: "Error with error and reason", | ||
labels: map[string]string{wIDKey: "my-workflow-id"}, | ||
labels: map[string]string{workflowIDKey: "my-workflow-id"}, | ||
err: err, | ||
reason: "some reason", | ||
want: "workflowID my-workflow-id: some reason: some error", | ||
}, | ||
{ | ||
name: "Error with error and no reason", | ||
labels: map[string]string{eIDKey: "dd3708ac7d8dd6fa4fae0fb87b73f318a4da2526c123e159b72435e3b2fe8751"}, | ||
labels: map[string]string{workflowExecutionIDKey: "dd3708ac7d8dd6fa4fae0fb87b73f318a4da2526c123e159b72435e3b2fe8751"}, | ||
err: err, | ||
want: "workflowExecutionID dd3708ac7d8dd6fa4fae0fb87b73f318a4da2526c123e159b72435e3b2fe8751: some error", | ||
}, | ||
{ | ||
name: "Error with no error and reason", | ||
labels: map[string]string{cIDKey: "streams-trigger:[email protected]"}, | ||
labels: map[string]string{capabilityIDKey: "streams-trigger:[email protected]"}, | ||
reason: "some reason", | ||
want: "capabilityID streams-trigger:[email protected]: some reason", | ||
}, | ||
{ | ||
name: "Error with no error and no reason", | ||
labels: map[string]string{tIDKey: "wf_123_trigger_456"}, | ||
labels: map[string]string{triggerIDKey: "wf_123_trigger_456"}, | ||
want: "triggerID wf_123_trigger_456: ", | ||
}, | ||
{ | ||
|
@@ -1005,9 +1006,9 @@ func TestEngine_Error(t *testing.T) { | |
{ | ||
name: "Multiple labels", | ||
labels: map[string]string{ | ||
wIDKey: "my-workflow-id", | ||
eIDKey: "dd3708ac7d8dd6fa4fae0fb87b73f318a4da2526c123e159b72435e3b2fe8751", | ||
cIDKey: "streams-trigger:[email protected]", | ||
workflowIDKey: "my-workflow-id", | ||
workflowExecutionIDKey: "dd3708ac7d8dd6fa4fae0fb87b73f318a4da2526c123e159b72435e3b2fe8751", | ||
capabilityIDKey: "streams-trigger:[email protected]", | ||
}, | ||
err: err, | ||
reason: "some reason", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters