Skip to content

Commit c785f91

Browse files
committed
Add e2e test for testing length on a file stream
1 parent 949bc63 commit c785f91

6 files changed

Lines changed: 102 additions & 2 deletions

File tree

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:566
26+
base.go:598
2727
github.com/actionforge/actrun-cli/core.LoadNode
2828
graph.go:599
2929
github.com/actionforge/actrun-cli/core.LoadNodes
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
build hasn't expired yet
2+
looking for value: 'env_file'
3+
no value (is optional) found for: 'env_file'
4+
looking for value: 'config_file'
5+
no value (is optional) found for: 'config_file'
6+
looking for value: 'concurrency'
7+
no value (is optional) found for: 'concurrency'
8+
looking for value: 'graph_file'
9+
found value in: 'env (shell)'
10+
evaluated to: 'length.act'
11+
looking for value: 'session_token'
12+
no value (is optional) found for: 'session_token'
13+
looking for value: 'create_debug_session'
14+
found value in flags
15+
evaluated to: 'false'
16+
PushNodeVisit: start, execute: true
17+
🟢 Execute 'File Read (core-file-read-v1-banana-gold-fox)'
18+
PushNodeVisit: core-file-read-v1-banana-gold-fox, execute: true
19+
🟢 Execute 'Print (core-print-v1-apricot-teal-purple)'
20+
PushNodeVisit: core-print-v1-apricot-teal-purple, execute: true
21+
PushNodeVisit: (cached) core-file-read-v1-banana-gold-fox, execute: false
22+
PushNodeVisit: core-length-v1-grape-lobster-camel, execute: false
23+
PushNodeVisit: (cached) core-file-read-v1-banana-gold-fox, execute: false
24+
hello world
25+
11

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:566
30+
base.go:598
3131
github.com/actionforge/actrun-cli/core.LoadNode
3232
graph.go:599
3333
github.com/actionforge/actrun-cli/core.LoadNodes

tests_e2e/scripts/length.act

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
editor:
2+
version:
3+
created: v1.34.0
4+
entry: start
5+
type: standard
6+
nodes:
7+
- id: start
8+
type: core/start@v1
9+
position:
10+
x: -520
11+
y: -110
12+
- id: core-file-read-v1-banana-gold-fox
13+
type: core/file-read@v1
14+
position:
15+
x: -170
16+
y: -190
17+
inputs:
18+
path: length.txt
19+
- id: core-print-v1-apricot-teal-purple
20+
type: core/print@v1
21+
position:
22+
x: 620
23+
y: -220
24+
inputs:
25+
values[0]: null
26+
values[1]: null
27+
- id: core-length-v1-grape-lobster-camel
28+
type: core/length@v1
29+
position:
30+
x: 270
31+
y: 40
32+
connections:
33+
- src:
34+
node: core-file-read-v1-banana-gold-fox
35+
port: data
36+
dst:
37+
node: core-length-v1-grape-lobster-camel
38+
port: input
39+
- src:
40+
node: core-length-v1-grape-lobster-camel
41+
port: result
42+
dst:
43+
node: core-print-v1-apricot-teal-purple
44+
port: values[1]
45+
- src:
46+
node: core-file-read-v1-banana-gold-fox
47+
port: data
48+
dst:
49+
node: core-print-v1-apricot-teal-purple
50+
port: values[0]
51+
executions:
52+
- src:
53+
node: core-file-read-v1-banana-gold-fox
54+
port: exec-success
55+
dst:
56+
node: core-print-v1-apricot-teal-purple
57+
port: exec
58+
- src:
59+
node: start
60+
port: exec
61+
dst:
62+
node: core-file-read-v1-banana-gold-fox
63+
port: exec

tests_e2e/scripts/length.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
echo "Test Length"
2+
3+
TEST_NAME=length
4+
GRAPH_FILE="${ACT_GRAPH_FILES_DIR}${PATH_SEPARATOR}${TEST_NAME}.act"
5+
TEST_FILE="${ACT_GRAPH_FILES_DIR}${PATH_SEPARATOR}${TEST_NAME}.txt"
6+
cp $GRAPH_FILE $TEST_NAME.act
7+
cp $TEST_FILE $TEST_NAME.txt
8+
export ACT_GRAPH_FILE=$TEST_NAME.act
9+
10+
#! test actrun
11+

tests_e2e/scripts/length.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hello world

0 commit comments

Comments
 (0)