Added a few unit test for Arvados class
[arvados.git] / sdk / cwl / tests / arvados-tests.yml
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 - job: dir-job.yml
6   output:
7     "outlist": {
8         "size": 20,
9         "location": "output.txt",
10         "class": "File",
11         "checksum": "sha1$13cda8661796ae241da3a18668fb552161a72592"
12     }
13   tool: keep-dir-test-input.cwl
14   doc: Test directory in keep
15
16 - job: dir-job2.yml
17   output:
18     "outlist": {
19         "size": 20,
20         "location": "output.txt",
21         "class": "File",
22         "checksum": "sha1$13cda8661796ae241da3a18668fb552161a72592"
23     }
24   tool: keep-dir-test-input.cwl
25   doc: Test directory in keep
26
27 - job: null
28   output:
29     "outlist": {
30         "size": 20,
31         "location": "output.txt",
32         "class": "File",
33         "checksum": "sha1$13cda8661796ae241da3a18668fb552161a72592"
34     }
35   tool: keep-dir-test-input2.cwl
36   doc: Test default directory in keep
37
38 - job: null
39   output:
40     "outlist": {
41         "size": 20,
42         "location": "output.txt",
43         "class": "File",
44         "checksum": "sha1$13cda8661796ae241da3a18668fb552161a72592"
45     }
46   tool: keep-dir-test-input3.cwl
47   doc: Test default directory in keep
48
49 - job: octo.yml
50   output: {}
51   tool: cat.cwl
52   doc: Test hashes in filenames
53
54 - job: listing-job.yml
55   output: {
56     "out": {
57         "class": "File",
58         "location": "output.txt",
59         "size": 5,
60         "checksum": "sha1$724ba28f4a9a1b472057ff99511ed393a45552e1"
61     }
62   }
63   tool: wf/listing_shallow.cwl
64   doc: test shallow directory listing
65
66 - job: listing-job.yml
67   output: {
68     "out": {
69         "class": "File",
70         "location": "output.txt",
71         "size": 5,
72         "checksum": "sha1$724ba28f4a9a1b472057ff99511ed393a45552e1"
73     }
74   }
75   tool: wf/listing_none.cwl
76   doc: test no directory listing
77
78 - job: listing-job.yml
79   output: {
80     "out": {
81         "class": "File",
82         "location": "output.txt",
83         "size": 5,
84         "checksum": "sha1$724ba28f4a9a1b472057ff99511ed393a45552e1"
85     }
86   }
87   tool: wf/listing_deep.cwl
88   doc: test deep directory listing
89
90 - job: null
91   output: {}
92   tool: noreuse.cwl
93   doc: "Test arv:ReuseRequirement"
94
95 - job: 12213-keepref-job.yml
96   output: {
97     "out": [
98         {
99             "checksum": "sha1$1c78028c0d69163391eef89316b44a57bde3fead",
100             "location": "sample1_S01_R1_001.fastq.txt",
101             "class": "File",
102             "size": 32
103         },
104         {
105             "checksum": "sha1$83483b9c65d99967aecc794c14f9f4743314d186",
106             "location": "sample2_S01_R3_001.fastq.txt",
107             "class": "File",
108             "size": 32
109         }
110     ]
111   }
112   tool: 12213-keepref-wf.cwl
113   doc: "Test manipulating keep references with expression tools"
114
115 - job: null
116   output:
117     out: null
118   tool: 12418-glob-empty-collection.cwl
119   doc: "Test glob output on empty collection"
120
121 - job: null
122   output:
123     out: out
124   tool: wf/runin-wf.cwl
125   doc: "RunInSingleContainer cwl.input.json needs to be consistent with pathmapper manipulations"
126
127 - job: secondary/wf-job.yml
128   output: {}
129   tool: secondary/wf.cwl
130   doc: "RunInSingleContainer applies secondaryFile discovery & manipulation before generating cwl.input.yml"