|
7 | 7 | "github.com/stretchr/testify/require"
|
8 | 8 | "sigs.k8s.io/yaml"
|
9 | 9 |
|
10 |
| - "github.com/smartcontractkit/chainlink-common/pkg/capabilities" |
11 | 10 | ocr3 "github.com/smartcontractkit/chainlink-common/pkg/capabilities/consensus/ocr3/ocr3cap"
|
12 | 11 | "github.com/smartcontractkit/chainlink-common/pkg/capabilities/targets/chainwriter"
|
13 | 12 | "github.com/smartcontractkit/chainlink-common/pkg/capabilities/triggers/streams"
|
@@ -205,81 +204,7 @@ func TestBuilder_ValidSpec(t *testing.T) {
|
205 | 204 | actual, err := factory.Spec()
|
206 | 205 | require.NoError(t, err)
|
207 | 206 |
|
208 |
| - expected := sdk.WorkflowSpec{ |
209 |
| - Name: "notccipethsep", |
210 |
| - Owner: "0x00000000000000000000000000000000000000aa", |
211 |
| - Triggers: []sdk.StepDefinition{ |
212 |
| - { |
213 |
| - |
214 |
| - Ref: "trigger", |
215 |
| - Inputs: sdk.StepInputs{}, |
216 |
| - Config: map[string]any{"maxFrequencyMs": 5000}, |
217 |
| - CapabilityType: capabilities.CapabilityTypeTrigger, |
218 |
| - }, |
219 |
| - }, |
220 |
| - Actions: make([]sdk.StepDefinition, 0), |
221 |
| - Consensus: []sdk.StepDefinition{ |
222 |
| - { |
223 |
| - |
224 |
| - Ref: "data-feeds-report", |
225 |
| - Inputs: sdk.StepInputs{ |
226 |
| - Mapping: map[string]any{"observations": []map[string]any{ |
227 |
| - { |
228 |
| - "Metadata": map[string]any{ |
229 |
| - "MinRequiredSignatures": 1, |
230 |
| - "Signers": []string{"$(trigger.outputs.Metadata.Signer)"}, |
231 |
| - }, |
232 |
| - "Payload": []map[string]any{ |
233 |
| - { |
234 |
| - "BenchmarkPrice": "$(trigger.outputs.Payload.BuyPrice)", |
235 |
| - "FeedID": anyFakeFeedID, |
236 |
| - "FullReport": "$(trigger.outputs.Payload.FullReport)", |
237 |
| - "ObservationTimestamp": "$(trigger.outputs.Payload.ObservationTimestamp)", |
238 |
| - "ReportContext": "$(trigger.outputs.Payload.ReportContext)", |
239 |
| - "Signatures": []string{"$(trigger.outputs.Payload.Signature)"}, |
240 |
| - }, |
241 |
| - }, |
242 |
| - "Timestamp": "$(trigger.outputs.Timestamp)", |
243 |
| - }, |
244 |
| - }}, |
245 |
| - }, |
246 |
| - Config: map[string]any{ |
247 |
| - "aggregation_config": ocr3.DataFeedsConsensusConfigAggregationConfig{ |
248 |
| - AllowedPartialStaleness: "0.5", |
249 |
| - Feeds: map[string]ocr3.FeedValue{ |
250 |
| - anyFakeFeedID: { |
251 |
| - Deviation: "0.5", |
252 |
| - Heartbeat: 3600, |
253 |
| - }, |
254 |
| - }, |
255 |
| - }, |
256 |
| - "aggregation_method": "data_feeds", |
257 |
| - "encoder": "EVM", |
258 |
| - "encoder_config": ocr3.EncoderConfig{ |
259 |
| - "Abi": "(bytes32 FeedID, uint224 Price, uint32 Timestamp)[] Reports", |
260 |
| - }, |
261 |
| - "report_id": "0001", |
262 |
| - }, |
263 |
| - CapabilityType: capabilities.CapabilityTypeConsensus, |
264 |
| - }, |
265 |
| - }, |
266 |
| - Targets: []sdk.StepDefinition{ |
267 |
| - { |
268 |
| - |
269 |
| - Inputs: sdk.StepInputs{ |
270 |
| - Mapping: map[string]any{"signed_report": "$(data-feeds-report.outputs)"}, |
271 |
| - }, |
272 |
| - Config: map[string]any{ |
273 |
| - "address": "0xE0082363396985ae2FdcC3a9F816A586Eed88416", |
274 |
| - "deltaStage": "45s", |
275 |
| - "schedule": "oneAtATime", |
276 |
| - }, |
277 |
| - CapabilityType: capabilities.CapabilityTypeTarget, |
278 |
| - }, |
279 |
| - }, |
280 |
| - } |
281 |
| - |
282 |
| - testutils.AssertWorkflowSpec(t, expected, actual) |
| 207 | + testutils.AssertWorkflowSpec(t, NotStreamSepoliaWorkflowSpec, actual) |
283 | 208 | })
|
284 | 209 |
|
285 | 210 | t.Run("duplicate names causes errors", func(t *testing.T) {
|
|
0 commit comments