Skip to content

Commit a848dbd

Browse files
committed
Added a test for using a valueFrom in a WorkflowStep, with a default inside the step, in a scatter workflow.
1 parent 4653247 commit a848dbd

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

conformance_tests.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,6 +1801,14 @@
18011801
doc: Test workflow scatter with single scatter parameter and two valueFrom using $inputs (first and current el)
18021802
tags: [ scatter, step_input, workflow ]
18031803

1804+
- job: tests/bwa-mem-job.json.json
1805+
output:
1806+
out: ["1", "2", "3", "4"]
1807+
tool: tests/scatter-valuefrom-default.cwl
1808+
id: wf_scatter_valuefrom_default
1809+
doc: Test workflow scatter with single scatter parameter, a valueFrom in the WorkflowStep and a default value inside the step
1810+
tags: [ scatter, step_input, workflow ]
1811+
18041812
- job: tests/import_schema-def_job.yml
18051813
output:
18061814
output_bam:

tests/scatter-valuefrom-default.cwl

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
class: Workflow
2+
cwlVersion: v1.3.0-dev1
3+
4+
requirements:
5+
StepInputExpressionRequirement: {}
6+
SubworkflowFeatureRequirement: {}
7+
ScatterFeatureRequirement: {}
8+
InlineJavascriptRequirement: {}
9+
10+
inputs:
11+
min_std_max_min: int[]
12+
13+
outputs:
14+
out1:
15+
type: string[]
16+
outputSource: step1/out1
17+
18+
steps:
19+
step1:
20+
run:
21+
class: Workflow
22+
inputs:
23+
value: int
24+
outputs:
25+
out1:
26+
type: string
27+
outputSource: step2/out1
28+
steps:
29+
step2:
30+
run: conditionals/cond-wf-003_nojs.cwl
31+
in:
32+
val: value
33+
test:
34+
valueFrom: "$(true)"
35+
out: [ out1 ]
36+
scatter: value
37+
in:
38+
value: min_std_max_min
39+
out: [out1]

0 commit comments

Comments
 (0)