Skip to content

Commit 5c955fc

Browse files
mvdbeekjmchilton
authored andcommitted
Update new green tests
1 parent bc08b2d commit 5c955fc

File tree

2 files changed

+59
-28
lines changed

2 files changed

+59
-28
lines changed

lib/galaxy_test/api/cwl/test_cwl_conformance_v1_0.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ def test_conformance_v1_0_wf_wc_scatter_multiple_merge(self):
708708
@pytest.mark.multiple_input
709709
@pytest.mark.inline_javascript
710710
@pytest.mark.workflow
711-
@pytest.mark.red
711+
@pytest.mark.green
712712
def test_conformance_v1_0_wf_wc_scatter_multiple_nested(self):
713713
"""Test single step workflow with Scatter step and two data links connected to same input, nested merge behavior
714714
@@ -872,7 +872,7 @@ def test_conformance_v1_0_envvar_req(self):
872872
@pytest.mark.cwl_conformance_v1_0
873873
@pytest.mark.scatter
874874
@pytest.mark.workflow
875-
@pytest.mark.red
875+
@pytest.mark.green
876876
def test_conformance_v1_0_wf_scatter_single_param(self):
877877
"""Test workflow scatter with single scatter parameter
878878
@@ -950,7 +950,7 @@ def test_conformance_v1_0_wf_scatter_two_flat_crossproduct(self):
950950
@pytest.mark.cwl_conformance_v1_0
951951
@pytest.mark.scatter
952952
@pytest.mark.workflow
953-
@pytest.mark.red
953+
@pytest.mark.green
954954
def test_conformance_v1_0_wf_scatter_two_dotproduct(self):
955955
"""Test workflow scatter with two scatter parameters and dotproduct join method
956956
@@ -1946,7 +1946,7 @@ def test_conformance_v1_0_valuefrom_wf_step_multiple(self):
19461946
@pytest.mark.step_input
19471947
@pytest.mark.inline_javascript
19481948
@pytest.mark.workflow
1949-
@pytest.mark.red
1949+
@pytest.mark.green
19501950
def test_conformance_v1_0_valuefrom_wf_step_other(self):
19511951
"""Test valueFrom on workflow step referencing other inputs
19521952
@@ -2200,7 +2200,7 @@ def test_conformance_v1_0_wf_scatter_twoparam_dotproduct_valuefrom(self):
22002200
@pytest.mark.scatter
22012201
@pytest.mark.step_input
22022202
@pytest.mark.workflow
2203-
@pytest.mark.red
2203+
@pytest.mark.green
22042204
def test_conformance_v1_0_wf_scatter_oneparam_valuefrom_twice_current_el(self):
22052205
"""Test workflow scatter with single scatter parameter and two valueFrom on step input (current el twice)
22062206
@@ -2228,7 +2228,7 @@ def test_conformance_v1_0_wf_scatter_oneparam_valuefrom_twice_current_el(self):
22282228
@pytest.mark.scatter
22292229
@pytest.mark.step_input
22302230
@pytest.mark.workflow
2231-
@pytest.mark.red
2231+
@pytest.mark.green
22322232
def test_conformance_v1_0_wf_scatter_oneparam_valueFrom(self):
22332233
"""Test valueFrom eval on scattered input parameter
22342234
@@ -2623,7 +2623,7 @@ def test_conformance_v1_0_env_home_tmpdir_docker(self):
26232623
@pytest.mark.cwl_conformance_v1_0
26242624
@pytest.mark.inline_javascript
26252625
@pytest.mark.workflow
2626-
@pytest.mark.red
2626+
@pytest.mark.green
26272627
def test_conformance_v1_0_expressionlib_tool_wf_override(self):
26282628
"""Test that expressionLib requirement of individual tool step overrides expressionLib of workflow.
26292629
@@ -2682,7 +2682,7 @@ def test_conformance_v1_0_initial_workdir_output(self):
26822682
@pytest.mark.cwl_conformance_v1_0
26832683
@pytest.mark.subworkflow
26842684
@pytest.mark.workflow
2685-
@pytest.mark.red
2685+
@pytest.mark.green
26862686
def test_conformance_v1_0_embedded_subworkflow(self):
26872687
"""Test embedded subworkflow
26882688
@@ -3035,7 +3035,7 @@ def test_conformance_v1_0_wf_compound_doc(self):
30353035
@pytest.mark.cwl_conformance_v1_0
30363036
@pytest.mark.step_input
30373037
@pytest.mark.workflow
3038-
@pytest.mark.red
3038+
@pytest.mark.green
30393039
def test_conformance_v1_0_nameroot_nameext_generated(self):
30403040
"""Test that nameroot and nameext are generated from basename at execution time by the runner
30413041
@@ -3090,7 +3090,7 @@ def test_conformance_v1_0_initialworkpath_output(self):
30903090
@pytest.mark.multiple_input
30913091
@pytest.mark.inline_javascript
30923092
@pytest.mark.workflow
3093-
@pytest.mark.red
3093+
@pytest.mark.green
30943094
def test_conformance_v1_0_wf_scatter_twopar_oneinput_flattenedmerge(self):
30953095
"""Test single step workflow with Scatter step and two data links connected to same input, flattened merge behavior. Workflow inputs are set as list
30963096
@@ -3760,7 +3760,7 @@ def test_conformance_v1_0_job_input_subdir_primary_and_secondary_subdirs(self):
37603760
@pytest.mark.cwl_conformance_v1_0
37613761
@pytest.mark.workflow
37623762
@pytest.mark.inline_javascript
3763-
@pytest.mark.red
3763+
@pytest.mark.green
37643764
def test_conformance_v1_0_scatter_embedded_subworkflow(self):
37653765
"""Test simple scatter over an embedded subworkflow
37663766
@@ -3787,7 +3787,7 @@ def test_conformance_v1_0_scatter_embedded_subworkflow(self):
37873787
@pytest.mark.subworkflow
37883788
@pytest.mark.multiple_input
37893789
@pytest.mark.inline_javascript
3790-
@pytest.mark.red
3790+
@pytest.mark.green
37913791
def test_conformance_v1_0_scatter_multi_input_embedded_subworkflow(self):
37923792
"""Test simple multiple input scatter over an embedded subworkflow
37933793
@@ -3815,7 +3815,7 @@ def test_conformance_v1_0_scatter_multi_input_embedded_subworkflow(self):
38153815
@pytest.mark.workflow
38163816
@pytest.mark.subworkflow
38173817
@pytest.mark.inline_javascript
3818-
@pytest.mark.red
3818+
@pytest.mark.green
38193819
def test_conformance_v1_0_workflow_embedded_subworkflow_embedded_subsubworkflow(self):
38203820
"""Test twice nested subworkflow
38213821
@@ -3839,7 +3839,7 @@ def test_conformance_v1_0_workflow_embedded_subworkflow_embedded_subsubworkflow(
38393839
@pytest.mark.workflow
38403840
@pytest.mark.subworkflow
38413841
@pytest.mark.inline_javascript
3842-
@pytest.mark.red
3842+
@pytest.mark.green
38433843
def test_conformance_v1_0_workflow_embedded_subworkflow_with_tool_and_subsubworkflow(self):
38443844
"""Test subworkflow of mixed depth with tool first
38453845
@@ -3919,7 +3919,7 @@ def test_conformance_v1_0_workflow_records_inputs_and_outputs(self):
39193919
@pytest.mark.workflow
39203920
@pytest.mark.inline_javascript
39213921
@pytest.mark.expression_tool
3922-
@pytest.mark.red
3922+
@pytest.mark.green
39233923
def test_conformance_v1_0_workflow_integer_input(self):
39243924
"""Test integer workflow input and outputs
39253925
@@ -3943,7 +3943,7 @@ def test_conformance_v1_0_workflow_integer_input(self):
39433943
@pytest.mark.workflow
39443944
@pytest.mark.inline_javascript
39453945
@pytest.mark.expression_tool
3946-
@pytest.mark.red
3946+
@pytest.mark.green
39473947
def test_conformance_v1_0_workflow_integer_input_optional_specified(self):
39483948
"""Test optional integer workflow inputs (specified)
39493949
@@ -3991,7 +3991,7 @@ def test_conformance_v1_0_workflow_integer_input_optional_unspecified(self):
39913991
@pytest.mark.workflow
39923992
@pytest.mark.inline_javascript
39933993
@pytest.mark.expression_tool
3994-
@pytest.mark.red
3994+
@pytest.mark.green
39953995
def test_conformance_v1_0_workflow_integer_input_default_specified(self):
39963996
"""Test default integer workflow inputs (specified)
39973997
@@ -4015,7 +4015,7 @@ def test_conformance_v1_0_workflow_integer_input_default_specified(self):
40154015
@pytest.mark.workflow
40164016
@pytest.mark.inline_javascript
40174017
@pytest.mark.expression_tool
4018-
@pytest.mark.red
4018+
@pytest.mark.green
40194019
def test_conformance_v1_0_workflow_integer_input_default_unspecified(self):
40204020
"""Test default integer workflow inputs (unspecified)
40214021
@@ -4039,7 +4039,7 @@ def test_conformance_v1_0_workflow_integer_input_default_unspecified(self):
40394039
@pytest.mark.workflow
40404040
@pytest.mark.inline_javascript
40414041
@pytest.mark.expression_tool
4042-
@pytest.mark.red
4042+
@pytest.mark.green
40434043
def test_conformance_v1_0_workflow_integer_input_default_and_tool_integer_input_default(self):
40444044
"""Test default integer tool and workflow inputs (unspecified)
40454045
@@ -4086,7 +4086,7 @@ def test_conformance_v1_0_workflow_file_input_default_unspecified(self):
40864086
@pytest.mark.cwl_conformance
40874087
@pytest.mark.cwl_conformance_v1_0
40884088
@pytest.mark.workflow
4089-
@pytest.mark.red
4089+
@pytest.mark.green
40904090
def test_conformance_v1_0_workflow_file_input_default_specified(self):
40914091
"""Test File input with default specified to workflow
40924092
@@ -4334,7 +4334,7 @@ def test_conformance_v1_0_clt_any_input_with_record_provided(self):
43344334
@pytest.mark.cwl_conformance_v1_0
43354335
@pytest.mark.workflow
43364336
@pytest.mark.inline_javascript
4337-
@pytest.mark.red
4337+
@pytest.mark.green
43384338
def test_conformance_v1_0_workflow_any_input_with_integer_provided(self):
43394339
"""Test Any parameter with integer input to a workflow
43404340
@@ -4356,7 +4356,7 @@ def test_conformance_v1_0_workflow_any_input_with_integer_provided(self):
43564356
@pytest.mark.cwl_conformance_v1_0
43574357
@pytest.mark.workflow
43584358
@pytest.mark.inline_javascript
4359-
@pytest.mark.red
4359+
@pytest.mark.green
43604360
def test_conformance_v1_0_workflow_any_input_with_string_provided(self):
43614361
"""Test Any parameter with string input to a workflow
43624362
@@ -4378,7 +4378,7 @@ def test_conformance_v1_0_workflow_any_input_with_string_provided(self):
43784378
@pytest.mark.cwl_conformance_v1_0
43794379
@pytest.mark.workflow
43804380
@pytest.mark.inline_javascript
4381-
@pytest.mark.red
4381+
@pytest.mark.green
43824382
def test_conformance_v1_0_workflow_any_input_with_file_provided(self):
43834383
"""Test Any parameter with file input to a workflow
43844384
@@ -4400,7 +4400,7 @@ def test_conformance_v1_0_workflow_any_input_with_file_provided(self):
44004400
@pytest.mark.cwl_conformance_v1_0
44014401
@pytest.mark.workflow
44024402
@pytest.mark.inline_javascript
4403-
@pytest.mark.red
4403+
@pytest.mark.green
44044404
def test_conformance_v1_0_workflow_any_input_with_mixed_array_provided(self):
44054405
"""Test Any parameter with array input to a workflow
44064406
@@ -4496,7 +4496,7 @@ def test_conformance_v1_0_workflow_union_default_input_with_file_provided(self):
44964496
@pytest.mark.cwl_conformance_v1_0
44974497
@pytest.mark.workflow
44984498
@pytest.mark.step_input
4499-
@pytest.mark.red
4499+
@pytest.mark.green
45004500
def test_conformance_v1_0_workflowstep_valuefrom_string(self):
45014501
"""Test valueFrom on workflow step from literal (string).
45024502
@@ -4520,7 +4520,7 @@ def test_conformance_v1_0_workflowstep_valuefrom_string(self):
45204520
@pytest.mark.cwl_conformance_v1_0
45214521
@pytest.mark.workflow
45224522
@pytest.mark.step_input
4523-
@pytest.mark.red
4523+
@pytest.mark.green
45244524
def test_conformance_v1_0_workflowstep_valuefrom_file_basename(self):
45254525
"""Test valueFrom on workflow step using basename.
45264526
@@ -4573,7 +4573,7 @@ def test_conformance_v1_0_expression_tool_int_array_output(self):
45734573
@pytest.mark.workflow
45744574
@pytest.mark.expression_tool
45754575
@pytest.mark.inline_javascript
4576-
@pytest.mark.red
4576+
@pytest.mark.green
45774577
def test_conformance_v1_0_workflowstep_int_array_input_output(self):
45784578
"""Test output arrays in a workflow (with ints).
45794579
@@ -4982,7 +4982,7 @@ def test_conformance_v1_0_step_input_default_value_overriden_2nd_step_noexp(self
49824982
@pytest.mark.cwl_conformance_v1_0
49834983
@pytest.mark.workflow
49844984
@pytest.mark.inline_javascript
4985-
@pytest.mark.red
4985+
@pytest.mark.green
49864986
def test_conformance_v1_0_step_input_default_value_overriden_2nd_step_null(self):
49874987
"""Test default value on step input parameter overridden by provided source. With null producing first step
49884988

test/unit/tools/cwl_tools/conformance_to_test_cases.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,35 @@ class CwlConformanceTestCase(BaseCwlWorklfowTestCase):
5353

5454
GREEN_TESTS = {
5555
"v1.0": [
56+
"wf_simple",
57+
"embedded_subworkflow",
58+
"expressionlib_tool_wf_override",
59+
"nameroot_nameext_generated",
60+
"scatter_embedded_subworkflow",
61+
"scatter_multi_input_embedded_subworkflow",
62+
"step_input_default_value_overriden_2nd_step_null",
63+
"valuefrom_wf_step_other",
64+
"wf_scatter_oneparam_valueFrom",
65+
"wf_scatter_oneparam_valuefrom_twice_current_el",
66+
"wf_scatter_single_param",
67+
"wf_scatter_two_dotproduct",
68+
"wf_scatter_twopar_oneinput_flattenedmerge",
69+
"wf_wc_scatter_multiple_nested",
70+
"workflow_any_input_with_file_provided",
71+
"workflow_any_input_with_integer_provided",
72+
"workflow_any_input_with_mixed_array_provided",
73+
"workflow_any_input_with_string_provided",
74+
"workflow_embedded_subworkflow_embedded_subsubworkflow",
75+
"workflow_embedded_subworkflow_with_tool_and_subsubworkflow",
76+
"workflow_file_input_default_specified",
77+
"workflow_integer_input",
78+
"workflow_integer_input_default_and_tool_integer_input_default",
79+
"workflow_integer_input_default_specified",
80+
"workflow_integer_input_default_unspecified",
81+
"workflow_integer_input_optional_specified",
82+
"workflowstep_int_array_input_output",
83+
"workflowstep_valuefrom_file_basename",
84+
"workflowstep_valuefrom_string",
5685
'directory_output',
5786
'wf_compound_doc',
5887
'step_input_default_value_nosource',
@@ -163,6 +192,7 @@ class CwlConformanceTestCase(BaseCwlWorklfowTestCase):
163192
"valuefrom_ignored_null",
164193
],
165194
"v1.1": [
195+
"wf_simple",
166196
'directory_output',
167197
'wf_compound_doc',
168198
'step_input_default_value_nosource',
@@ -291,6 +321,7 @@ class CwlConformanceTestCase(BaseCwlWorklfowTestCase):
291321
"timelimit_invalid",
292322
],
293323
"v1.2": [
324+
"wf_simple",
294325
'directory_output',
295326
'wf_compound_doc',
296327
'step_input_default_value_nosource',

0 commit comments

Comments
 (0)