Skip to content

Commit e5c23e6

Browse files
committed
Add test case for fail uncconected ExpressionTool
Original PullRequest common-workflow-language/cwltool#1566 Original Issue common-workflow-language/cwltool#1330
1 parent a8d4c9a commit e5c23e6

3 files changed

+48
-0
lines changed

conformance_tests.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -3392,6 +3392,16 @@
33923392
tags: [ required, command_line_tool ]
33933393
id: 257
33943394

3395+
- job: tests/empty.json
3396+
tool: tests/fail-unconnected-expressiontool.cwl
3397+
label: wf_step_access_undeclared_param_expressiontool
3398+
id: 258
3399+
doc: >-
3400+
Test that parameters that don't appear in the `run` process
3401+
inputs are not present in the input object used to run the expressiontool.
3402+
should_fail: true
3403+
tags: [ required, workflow ]
3404+
33953405
- $import: tests/string-interpolation/test-index.yaml
33963406

33973407
- $import: tests/conditionals/test-index.yaml
+20
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
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)