Skip to content

Commit f23a8db

Browse files
committed
Fix e2e tests
1 parent a407d4e commit f23a8db

12 files changed

Lines changed: 55 additions & 22 deletions

tests_e2e/references/reference_error_no_output.sh_l8

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,26 @@ actrun: error_no_output.act
2222
error:
2323
1: execute 'Start' (start)
2424
2: execute 'Print' (print-v1-panda-orange-peacock)
25+
3: request input from 'Run Executable' (run-exec-v1-wolf-guava-gray)
2526
error when requesting input from 'Print' (print-v1-panda-orange-peacock) values at **first** input port
2627
↳ output port 'output' has no value
2728

2829

2930

3031
hint:
31-
No output value provided. Check the settings of 'Print' (print-v1-panda-orange-peacock) node
32+
No output value provided. Check the settings of 'Run Executable' (run-exec-v1-wolf-guava-gray) node
3233

3334
stack trace:
3435
github.com/actionforge/actrun-cli/core.(*Outputs).OutputValueById
3536
outputs.go:112
3637
github.com/actionforge/actrun-cli/core.(*Inputs).InputValueById
3738
inputs.go:364
3839
github.com/actionforge/actrun-cli/core.inputValueById[...]
39-
inputs.go:471
40+
inputs.go:472
4041
github.com/actionforge/actrun-cli/core.InputValueFromSubInputs[...]
41-
inputs.go:466
42+
inputs.go:467
4243
github.com/actionforge/actrun-cli/core.InputArrayValueById[...]
43-
inputs.go:548
44+
inputs.go:549
4445
github.com/actionforge/actrun-cli/nodes.(*PrintNode).ExecuteImpl
4546
print@v1.go:27
4647
github.com/actionforge/actrun-cli/core.(*Executions).Execute

tests_e2e/references/reference_group-port-collision.sh_l13

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ stack trace:
2323
github.com/actionforge/actrun-cli/nodes.init.39.func1
2424
group@v1.go:128
2525
github.com/actionforge/actrun-cli/core.NewNodeInstance
26-
base.go:615
26+
base.go:610
2727
github.com/actionforge/actrun-cli/core.LoadNode
2828
graph.go:599
2929
github.com/actionforge/actrun-cli/core.LoadNodes

tests_e2e/references/reference_index.sh_l20

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ error:
5454
4: execute 'Print' (print-v1-indigo-guava-elephant)
5555
5: execute 'Print' (print-v1-indigo-guava-elephant)
5656
6: execute 'Print' (print-v1-indigo-guava-elephant)
57+
7: request input from 'Array Get' (array-get-v1-goose-chicken-nectarine)
5758
error when requesting input from 'Print' (print-v1-indigo-guava-elephant) values at **first** input port
5859
↳ index out of bounds: 3
5960

@@ -65,11 +66,11 @@ github.com/actionforge/actrun-cli/nodes.(*ArrayGet).OutputValueById
6566
github.com/actionforge/actrun-cli/core.(*Inputs).InputValueById
6667
inputs.go:364
6768
github.com/actionforge/actrun-cli/core.inputValueById[...]
68-
inputs.go:471
69+
inputs.go:472
6970
github.com/actionforge/actrun-cli/core.InputValueFromSubInputs[...]
70-
inputs.go:466
71+
inputs.go:467
7172
github.com/actionforge/actrun-cli/core.InputArrayValueById[...]
72-
inputs.go:548
73+
inputs.go:549
7374
github.com/actionforge/actrun-cli/nodes.(*PrintNode).ExecuteImpl
7475
print@v1.go:27
7576
github.com/actionforge/actrun-cli/core.(*Executions).Execute

tests_e2e/references/reference_run-python-embedded.sh_l13

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ stack trace:
2727
github.com/actionforge/actrun-cli/nodes.init.50.func1
2828
nrun-python-embedded@v1.go:16
2929
github.com/actionforge/actrun-cli/core.NewNodeInstance
30-
base.go:615
30+
base.go:610
3131
github.com/actionforge/actrun-cli/core.LoadNode
3232
graph.go:599
3333
github.com/actionforge/actrun-cli/core.LoadNodes

tests_e2e/references/reference_secret.sh_l11 renamed to tests_e2e/references/reference_secret.sh_l12

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ PushNodeVisit: start, execute: true
1818
PushNodeVisit: run-v1-butterfly-gray-shark, execute: true
1919
PushNodeVisit: env-array-v1-lemon-grape-lion, execute: false
2020
PushNodeVisit: secret-v1-orange-blueberry-red, execute: false
21-
THIS_IS_A_SECRET
21+
PushNodeVisit: core-secret-get-v1-duck-starfruit-silver, execute: false
22+
THIS_IS_A_SECRET_FROM_BASH
23+
THIS_IS_A_SECRET_2_FROM_BASH

tests_e2e/references/reference_secret.sh_l15 renamed to tests_e2e/references/reference_secret.sh_l17

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ PushNodeVisit: start, execute: true
1818
PushNodeVisit: run-v1-butterfly-gray-shark, execute: true
1919
PushNodeVisit: env-array-v1-lemon-grape-lion, execute: false
2020
PushNodeVisit: secret-v1-orange-blueberry-red, execute: false
21-
THIS_IS_ANOTHER_SECRET
21+
PushNodeVisit: core-secret-get-v1-duck-starfruit-silver, execute: false
22+
THIS_IS_ANOTHER_SECRET_FROM_BASH
23+
THIS_IS_ANOTHER_SECRET_2_FROM_BASH

tests_e2e/references/reference_secret.sh_l19 renamed to tests_e2e/references/reference_secret.sh_l21

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ PushNodeVisit: start, execute: true
1919
PushNodeVisit: run-v1-butterfly-gray-shark, execute: true
2020
PushNodeVisit: env-array-v1-lemon-grape-lion, execute: false
2121
PushNodeVisit: secret-v1-orange-blueberry-red, execute: false
22-
THIS_IS_API_KEY_123
22+
PushNodeVisit: core-secret-get-v1-duck-starfruit-silver, execute: false
23+
THIS_IS_API_KEY_123_FROM_SECRET_ACTCONFIG
24+
ALIAS_FROM_SECRET_ACTCONFIG

tests_e2e/references/reference_select-data.sh_l9

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ error:
6161
6: execute 'Print' (print-v1-gold-gold-panda)
6262
7: execute 'Print' (print-v1-gold-gold-panda)
6363
8: execute 'Print' (print-v1-gold-gold-panda)
64+
9: request input from 'Select Data' (select-v1-grape-peach-snake)
6465
error when requesting input from 'Print' (print-v1-gold-gold-panda) values at **first** input port
6566
↳ index out of range: 5, expected 0-4
6667

@@ -72,11 +73,11 @@ github.com/actionforge/actrun-cli/nodes.(*SelectDataNode).OutputValueById
7273
github.com/actionforge/actrun-cli/core.(*Inputs).InputValueById
7374
inputs.go:364
7475
github.com/actionforge/actrun-cli/core.inputValueById[...]
75-
inputs.go:471
76+
inputs.go:472
7677
github.com/actionforge/actrun-cli/core.InputValueFromSubInputs[...]
77-
inputs.go:466
78+
inputs.go:467
7879
github.com/actionforge/actrun-cli/core.InputArrayValueById[...]
79-
inputs.go:548
80+
inputs.go:549
8081
github.com/actionforge/actrun-cli/nodes.(*PrintNode).ExecuteImpl
8182
print@v1.go:27
8283
github.com/actionforge/actrun-cli/core.(*Executions).Execute

tests_e2e/references/reference_string-transform.sh_l61

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ actrun: string-transform.act
2525
error:
2626
1: execute 'Start' (start)
2727
2: execute 'Print' (print-v1-coral-banana-goat)
28+
3: request input from 'String Transform' (string-transform-v1-blue-horse-turquoise)
2829
error when requesting input from 'Print' (print-v1-coral-banana-goat) values at **1st** input port
2930
↳ unknown operation 'op_doesnt_exist'
3031

@@ -36,11 +37,11 @@ github.com/actionforge/actrun-cli/nodes.(*StringTransform).OutputValueById
3637
github.com/actionforge/actrun-cli/core.(*Inputs).InputValueById
3738
inputs.go:364
3839
github.com/actionforge/actrun-cli/core.inputValueById[...]
39-
inputs.go:471
40+
inputs.go:472
4041
github.com/actionforge/actrun-cli/core.InputValueFromSubInputs[...]
41-
inputs.go:466
42+
inputs.go:467
4243
github.com/actionforge/actrun-cli/core.InputArrayValueById[...]
43-
inputs.go:548
44+
inputs.go:549
4445
github.com/actionforge/actrun-cli/nodes.(*PrintNode).ExecuteImpl
4546
print@v1.go:27
4647
github.com/actionforge/actrun-cli/core.(*Executions).Execute

tests_e2e/scripts/secret.act

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,35 @@ nodes:
1515
script: |-
1616
import os, sys
1717
sys.stdout.write(os.environ["FOO"] + "\n")
18+
sys.stdout.write(os.environ["FOO_ALIAS"] + "\n")
1819
- id: secret-v1-orange-blueberry-red
1920
type: core/secret-get@v1
2021
position:
2122
x: -70
22-
y: 560
23+
y: 580
2324
inputs:
2425
name: API_KEY_123
2526
prefix: FOO=
27+
label: ''
28+
comment: new core/secret-get@v1
2629
- id: env-array-v1-lemon-grape-lion
2730
type: core/env-array@v1
2831
position:
2932
x: 370
3033
y: 570
3134
inputs:
3235
env[0]: ''
36+
env[1]: ''
37+
- id: core-secret-get-v1-duck-starfruit-silver
38+
type: core/secret-get@v1
39+
position:
40+
x: -60
41+
y: 820
42+
inputs:
43+
name: API_KEY_ALIAS
44+
prefix: FOO_ALIAS=
45+
label: ''
46+
comment: old core/secret@v1
3347
connections:
3448
- src:
3549
node: env-array-v1-lemon-grape-lion
@@ -43,6 +57,12 @@ connections:
4357
dst:
4458
node: env-array-v1-lemon-grape-lion
4559
port: env[0]
60+
- src:
61+
node: core-secret-get-v1-duck-starfruit-silver
62+
port: secret
63+
dst:
64+
node: env-array-v1-lemon-grape-lion
65+
port: env[1]
4666
executions:
4767
- src:
4868
node: start

0 commit comments

Comments
 (0)