Skip to content

Commit f56e4d7

Browse files
manabumr-c
authored andcommitted
Add test case for fail uncconected ExpressionTool
Original PullRequest common-workflow-language/cwltool#1566 Original Issue common-workflow-language/cwltool#1330
1 parent fa6d28f commit f56e4d7

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

conformance_tests.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3150,6 +3150,16 @@
31503150
}
31513151
tags: [ required, command_line_tool ]
31523152

3153+
- job: tests/empty.json
3154+
tool: tests/fail-unconnected-expressiontool.cwl
3155+
label: wf_step_access_undeclared_param_expressiontool
3156+
id: 258
3157+
doc: >-
3158+
Test that parameters that don't appear in the `run` process
3159+
inputs are not present in the input object used to run the expressiontool.
3160+
should_fail: true
3161+
tags: [ required, workflow ]
3162+
31533163
- $import: tests/string-interpolation/test-index.yaml
31543164

31553165
- $import: tests/conditionals/test-index.yaml
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
class: Workflow
2+
cwlVersion: v1.1
3+
inputs:
4+
inp1:
5+
type: string
6+
default: hello inp1
7+
inp2:
8+
type: string
9+
default: hello inp2
10+
outputs:
11+
out:
12+
type: string
13+
outputSource: step1/out
14+
steps:
15+
step1:
16+
in:
17+
in: inp1
18+
in2: inp2
19+
out: [out]
20+
run: fail-unspecified-input-expressiontool.cwl
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
cwlVersion: v1.0
2+
class: ExpressionTool
3+
4+
requirements:
5+
InlineJavascriptRequirement: {}
6+
7+
inputs:
8+
in:
9+
type: string
10+
11+
outputs:
12+
out:
13+
type: string
14+
15+
expression: |
16+
${
17+
return {"out": inputs.in +" "+inputs.in2};
18+
}

0 commit comments

Comments
 (0)