diff --git a/conformance_tests.yaml b/conformance_tests.yaml index 22b585d..4e365f2 100644 --- a/conformance_tests.yaml +++ b/conformance_tests.yaml @@ -1801,6 +1801,14 @@ doc: Test workflow scatter with single scatter parameter and two valueFrom using $inputs (first and current el) tags: [ scatter, step_input, workflow ] +- job: tests/bwa-mem-job.json + output: + out1: [ "foo 1", "foo 2", "foo 3", "foo 4"] + tool: tests/scatter-valuefrom-default.cwl + id: wf_scatter_valuefrom_default + doc: Test workflow scatter with single scatter parameter, a valueFrom in the WorkflowStep and a default value inside the step + tags: [ scatter, step_input, workflow ] + - job: tests/import_schema-def_job.yml output: output_bam: diff --git a/tests/scatter-valuefrom-default.cwl b/tests/scatter-valuefrom-default.cwl new file mode 100644 index 0000000..2161ce1 --- /dev/null +++ b/tests/scatter-valuefrom-default.cwl @@ -0,0 +1,39 @@ +class: Workflow +cwlVersion: v1.3.0-dev1 + +requirements: + StepInputExpressionRequirement: {} + SubworkflowFeatureRequirement: {} + ScatterFeatureRequirement: {} + InlineJavascriptRequirement: {} + +inputs: + min_std_max_min: int[] + +outputs: + out1: + type: string[] + outputSource: step1/out1 + +steps: + step1: + run: + class: Workflow + inputs: + value: int + outputs: + out1: + type: string + outputSource: step2/out1 + steps: + step2: + run: conditionals/cond-wf-003_nojs.cwl + in: + val: value + test: + valueFrom: "$(true)" + out: [ out1 ] + scatter: value + in: + value: min_std_max_min + out: [out1] \ No newline at end of file