Merge branch '22155-layout-bugs'
[arvados.git] / services / workbench2 / cypress / e2e / create-workflow.cy.js
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 describe('Create workflow tests', function () {
6     let activeUser;
7     let adminUser;
8
9     before(function () {
10         cy.getUser('admin', 'Admin', 'User', true, true)
11             .as('adminUser').then(function () {
12                 adminUser = this.adminUser;
13             }
14             );
15         cy.getUser('activeuser', 'Active', 'User', false, true)
16             .as('activeUser').then(function () {
17                 activeUser = this.activeUser;
18             }
19             );
20     });
21
22     function createNestedHelper(testRemainder) {
23         cy.createGroup(adminUser.token, {
24             group_class: "project",
25             name: `Test project (${Math.floor(Math.random() * 999999)})`,
26         }).as('project1');
27
28         cy.get('@project1').then(() => {
29             cy.createGroup(adminUser.token, {
30                 group_class: "project",
31                 name: `Test project (${Math.floor(Math.random() * 999999)})`,
32                 owner_uuid: this.project1.uuid,
33             }).as('project2');
34         })
35
36         cy.get('@project2').then(() => {
37             cy.createGroup(adminUser.token, {
38                 group_class: "project",
39                 name: `Test project (${Math.floor(Math.random() * 999999)})`,
40                 owner_uuid: this.project2.uuid,
41             }).as('project3');
42         });
43
44         cy.get('@project3').then(() => {
45             cy.createWorkflow(adminUser.token, {
46                 name: `TestWorkflow${Math.floor(Math.random() * 999999)}.cwl`,
47                 definition: "{\n    \"$graph\": [\n        {\n            \"class\": \"Workflow\",\n            \"doc\": \"Reverse the lines in a document, then sort those lines.\",\n            \"hints\": [\n                {\n                    \"acrContainerImage\": \"99b0201f4cade456b4c9d343769a3b70+261\",\n                    \"class\": \"http://arvados.org/cwl#WorkflowRunnerResources\"\n                }\n            ],\n            \"id\": \"#main\",\n            \"inputs\": [\n                {\n                    \"default\": null,\n                    \"doc\": \"The input file to be processed.\",\n                    \"id\": \"#main/input\",\n                    \"type\": \"File\"\n                },\n                {\n                    \"default\": true,\n                    \"doc\": \"If true, reverse (decending) sort\",\n                    \"id\": \"#main/reverse_sort\",\n                    \"type\": \"boolean\"\n                }\n            ],\n            \"outputs\": [\n                {\n                    \"doc\": \"The output with the lines reversed and sorted.\",\n                    \"id\": \"#main/output\",\n                    \"outputSource\": \"#main/sorted/output\",\n                    \"type\": \"File\"\n                }\n            ],\n            \"steps\": [\n                {\n                    \"id\": \"#main/rev\",\n                    \"in\": [\n                        {\n                            \"id\": \"#main/rev/input\",\n                            \"source\": \"#main/input\"\n                        }\n                    ],\n                    \"out\": [\n                        \"#main/rev/output\"\n                    ],\n                    \"run\": \"#revtool.cwl\"\n                },\n                {\n                    \"id\": \"#main/sorted\",\n                    \"in\": [\n                        {\n                            \"id\": \"#main/sorted/input\",\n                            \"source\": \"#main/rev/output\"\n                        },\n                        {\n                            \"id\": \"#main/sorted/reverse\",\n                            \"source\": \"#main/reverse_sort\"\n                        }\n                    ],\n                    \"out\": [\n                        \"#main/sorted/output\"\n                    ],\n                    \"run\": \"#sorttool.cwl\"\n                }\n            ]\n        },\n        {\n            \"baseCommand\": \"rev\",\n            \"class\": \"CommandLineTool\",\n            \"doc\": \"Reverse each line using the `rev` command\",\n            \"hints\": [\n                {\n                    \"class\": \"ResourceRequirement\",\n                    \"ramMin\": 8\n                }\n            ],\n            \"id\": \"#revtool.cwl\",\n            \"inputs\": [\n                {\n                    \"id\": \"#revtool.cwl/input\",\n                    \"inputBinding\": {},\n                    \"type\": \"File\"\n                }\n            ],\n            \"outputs\": [\n                {\n                    \"id\": \"#revtool.cwl/output\",\n                    \"outputBinding\": {\n                        \"glob\": \"output.txt\"\n                    },\n                    \"type\": \"File\"\n                }\n            ],\n            \"stdout\": \"output.txt\"\n        },\n        {\n            \"baseCommand\": \"sort\",\n            \"class\": \"CommandLineTool\",\n            \"doc\": \"Sort lines using the `sort` command\",\n            \"hints\": [\n                {\n                    \"class\": \"ResourceRequirement\",\n                    \"ramMin\": 8\n                }\n            ],\n            \"id\": \"#sorttool.cwl\",\n            \"inputs\": [\n                {\n                    \"id\": \"#sorttool.cwl/reverse\",\n                    \"inputBinding\": {\n                        \"position\": 1,\n                        \"prefix\": \"-r\"\n                    },\n                    \"type\": \"boolean\"\n                },\n                {\n                    \"id\": \"#sorttool.cwl/input\",\n                    \"inputBinding\": {\n                        \"position\": 2\n                    },\n                    \"type\": \"File\"\n                }\n            ],\n            \"outputs\": [\n                {\n                    \"id\": \"#sorttool.cwl/output\",\n                    \"outputBinding\": {\n                        \"glob\": \"output.txt\"\n                    },\n                    \"type\": \"File\"\n                }\n            ],\n            \"stdout\": \"output.txt\"\n        }\n    ],\n    \"cwlVersion\": \"v1.0\"\n}",
48             })
49                 .as('testWorkflow');
50
51             cy.createCollection(adminUser.token, {
52                 name: `Test collection ${Math.floor(Math.random() * 999999)}`,
53                 owner_uuid: this.project3.uuid,
54                 manifest_text: "./subdir 37b51d194a7513e45b56f6524f2d51f2+3 0:3:foo\n. 37b51d194a7513e45b56f6524f2d51f2+3 0:3:baz\n"
55             })
56                 .as('testCollection');
57         });
58
59         cy.get('@testWorkflow').then(() => {
60             cy.loginAs(adminUser);
61
62             cy.get('[data-cy=side-panel-button]').click();
63             cy.get('[data-cy=side-panel-run-process]').click();
64
65             cy.get('.layout-pane')
66                 .contains(this.testWorkflow.name)
67                 .click();
68
69             cy.get('[data-cy=run-process-next-button]').click();
70
71             cy.get('[data-cy=new-process-panel]').contains('Run workflow').should('be.disabled');
72
73             cy.get('[data-cy=new-process-panel]')
74                 .within(() => {
75                     cy.get('[name=name]').type(`Workflow name (${Math.floor(Math.random() * 999999)})`);
76                     cy.contains('input').next().click();
77                 });
78
79             testRemainder();
80
81             cy.get('[data-cy=new-process-panel]')
82                 .find('button').contains('Run workflow').should('not.be.disabled');
83         });
84     }
85
86     it('can create project with nested data', function () {
87         this.createNestedHelper = createNestedHelper;
88         this.createNestedHelper(() => {
89             cy.get('[data-cy=choose-a-file-dialog]').as('chooseFileDialog');
90             cy.get('@chooseFileDialog').contains('Home Projects')
91                 .parents('[data-cy=tree-li]')
92                 .find('[data-cy=side-panel-arrow-icon]')
93                 .click();
94
95             cy.get('@project1').then((project1) => {
96                 cy.get('@chooseFileDialog').find(`[data-id=${project1.uuid}]`);
97                 cy.get('@chooseFileDialog')
98                     .find(`[data-id=${project1.uuid}]`)
99                     .find('[data-action=TOGGLE_ACTIVE]')
100                     .click();
101                 cy.get('[data-cy=picker-dialog-details]')
102                     .contains("Project");
103                 cy.get('[data-cy=picker-dialog-details]')
104                     .contains(project1.uuid);
105                 cy.get('@chooseFileDialog')
106                     .find(`[data-id=${project1.uuid}]`)
107                     .find('[data-action=TOGGLE_OPEN]')
108                     .click();
109             });
110
111             cy.get('@project2').then((project2) => {
112                 cy.get('@chooseFileDialog').find(`[data-id=${project2.uuid}]`);
113                 cy.get('@chooseFileDialog')
114                     .find(`[data-id=${project2.uuid}]`)
115                     .find('[data-action=TOGGLE_ACTIVE]')
116                     .click();
117                 cy.get('[data-cy=picker-dialog-details]')
118                     .contains("Project");
119                 cy.get('[data-cy=picker-dialog-details]')
120                     .contains(project2.uuid);
121                 cy.get('@chooseFileDialog')
122                     .find(`[data-id=${project2.uuid}]`)
123                     .find('[data-action=TOGGLE_OPEN]')
124                     .click();
125             });
126
127             cy.get('@project3').then((project3) => {
128                 cy.get('@chooseFileDialog').find(`[data-id=${project3.uuid}]`);
129                 cy.get('@chooseFileDialog')
130                     .find(`[data-id=${project3.uuid}]`)
131                     .find('[data-action=TOGGLE_ACTIVE]')
132                     .click();
133                 cy.get('[data-cy=picker-dialog-details]')
134                     .contains("Project");
135                 cy.get('[data-cy=picker-dialog-details]')
136                     .contains(project3.uuid);
137                 cy.get('@chooseFileDialog')
138                     .find(`[data-id=${project3.uuid}]`)
139                     .find('[data-action=TOGGLE_OPEN]')
140                     .click();
141             });
142
143             cy.get('@testCollection').then((testCollection) => {
144                 cy.get('@chooseFileDialog').find(`[data-id=${testCollection.uuid}]`);
145                 cy.get('@chooseFileDialog')
146                     .find(`[data-id=${testCollection.uuid}]`)
147                     .find('[data-action=TOGGLE_ACTIVE]')
148                     .click();
149                 cy.get('[data-cy=picker-dialog-details]')
150                     .contains("Collection");
151                 cy.get('[data-cy=picker-dialog-details]')
152                     .contains(testCollection.uuid);
153                 cy.get('@chooseFileDialog')
154                     .find(`[data-id=${testCollection.uuid}]`)
155                     .find('[data-action=TOGGLE_OPEN]')
156                     .click();
157             });
158
159             cy.get('@chooseFileDialog').contains('baz').click();
160             cy.get('[data-cy=picker-dialog-details]')
161                 .contains("File");
162
163             cy.get('@chooseFileDialog').find('button').contains('Ok').click();
164         });
165     });
166
167     it('can search for nested project by name', function () {
168         this.createNestedHelper = createNestedHelper;
169         this.createNestedHelper(() => {
170             cy.get('[data-cy=choose-a-file-dialog]').as('chooseFileDialog');
171
172             cy.get('@project3').then((project3) => {
173                 cy.get('[data-cy=picker-dialog-project-search]')
174                     .find('[data-cy=search-input]')
175                     .type(project3.name)
176
177                 cy.waitForDom();
178
179                 cy.get('@chooseFileDialog')
180                     .find(`[data-id=${project3.uuid}]`)
181                     .find('[data-action=TOGGLE_OPEN]')
182                     .click();
183
184                 cy.get('@testCollection').then((testCollection) => {
185                     cy.get('@chooseFileDialog').find(`[data-id=${testCollection.uuid}]`).find('i').click();
186                 });
187
188                 cy.get('@chooseFileDialog').contains('baz').click();
189
190                 cy.get('@chooseFileDialog').find('button').contains('Ok').click();
191             });
192         });
193     });
194
195     it('can search for nested project by uuid', function () {
196         this.createNestedHelper = createNestedHelper;
197         this.createNestedHelper(() => {
198             cy.get('[data-cy=choose-a-file-dialog]').as('chooseFileDialog');
199
200             cy.get('@project3').then((project3) => {
201                 cy.get('[data-cy=picker-dialog-project-search]')
202                     .find('[data-cy=search-input]')
203                     .type(project3.uuid)
204
205                 cy.waitForDom();
206
207                 cy.get('@chooseFileDialog')
208                     .find(`[data-id=${project3.uuid}]`)
209                     .find('[data-action=TOGGLE_OPEN]')
210                     .click();
211
212                 cy.get('@testCollection').then((testCollection) => {
213                     cy.get('@chooseFileDialog').find(`[data-id=${testCollection.uuid}]`).find('i').click();
214                 });
215
216                 cy.get('@chooseFileDialog').contains('baz').click();
217
218                 cy.get('@chooseFileDialog').find('button').contains('Ok').click();
219             });
220         });
221     });
222
223
224     it('can search for collection by name', function () {
225         this.createNestedHelper = createNestedHelper;
226         this.createNestedHelper(() => {
227             cy.get('[data-cy=choose-a-file-dialog]').as('chooseFileDialog');
228
229             cy.get('@testCollection').then((testCollection) => {
230                 cy.get('[data-cy=picker-dialog-collection-search]')
231                     .find('[data-cy=search-input]')
232                     .type(testCollection.name)
233
234                 cy.waitForDom();
235
236                 cy.get('@testCollection').then((testCollection) => {
237                     cy.get('@chooseFileDialog')
238                         .find(`[data-id=${testCollection.uuid}]`)
239                         .find('[data-action=TOGGLE_OPEN]')
240                         .click();
241                 });
242
243                 cy.get('@chooseFileDialog').contains('baz').click();
244
245                 cy.get('@chooseFileDialog').find('button').contains('Ok').click();
246             });
247         });
248     });
249
250     it('can search for collection by uuid', function () {
251         this.createNestedHelper = createNestedHelper;
252         this.createNestedHelper(() => {
253             cy.get('[data-cy=choose-a-file-dialog]').as('chooseFileDialog');
254
255             cy.get('@testCollection').then((testCollection) => {
256                 cy.get('[data-cy=picker-dialog-collection-search]')
257                     .find('[data-cy=search-input]')
258                     .type(testCollection.uuid)
259
260                 cy.waitForDom();
261
262                 cy.get('@testCollection').then((testCollection) => {
263                     cy.get('@chooseFileDialog')
264                         .find(`[data-id=${testCollection.uuid}]`)
265                         .find('[data-action=TOGGLE_OPEN]')
266                         .click();
267                 });
268
269                 cy.get('@chooseFileDialog').contains('baz').click();
270
271                 cy.get('@chooseFileDialog').find('button').contains('Ok').click();
272             });
273         });
274     });
275
276     it('can search for collection by PDH', function () {
277         this.createNestedHelper = createNestedHelper;
278         this.createNestedHelper(() => {
279             cy.get('[data-cy=choose-a-file-dialog]').as('chooseFileDialog');
280
281             cy.get('@testCollection').then((testCollection) => {
282                 cy.get('[data-cy=picker-dialog-collection-search]')
283                     .find('[data-cy=search-input]')
284                     .type(testCollection.portable_data_hash)
285
286                 cy.waitForDom();
287
288                 cy.get('@testCollection').then((testCollection) => {
289                     cy.get('@chooseFileDialog')
290                         .find(`[data-id=${testCollection.uuid}]`)
291                         .find('[data-action=TOGGLE_OPEN]')
292                         .click();
293                 });
294
295                 cy.get('@chooseFileDialog').contains('baz').click();
296
297                 cy.get('@chooseFileDialog').find('button').contains('Ok').click();
298             });
299         });
300     });
301
302     ['workflow_with_array_fields.yaml', 'workflow_with_default_array_fields.yaml'].forEach((yamlfile) =>
303     it('can select multi files when creating workflow '+yamlfile, () => {
304         cy.createProject({
305             owningUser: activeUser,
306             projectName: 'myProject1',
307             addToFavorites: true
308         });
309
310         cy.createCollection(adminUser.token, {
311             name: `Test collection ${Math.floor(Math.random() * 999999)}`,
312             owner_uuid: activeUser.user.uuid,
313             manifest_text: ". 37b51d194a7513e45b56f6524f2d51f2+3 0:3:bar\n. 37b51d194a7513e45b56f6524f2d51f2+3 0:3:baz\n"
314         })
315             .as('testCollection');
316
317         cy.createCollection(adminUser.token, {
318             name: `Test collection ${Math.floor(Math.random() * 999999)}`,
319             owner_uuid: activeUser.user.uuid,
320             manifest_text: `. 37b51d194a7513e45b56f6524f2d51f2+3 0:3:buz\n`
321         })
322             .as('testCollection2');
323
324         cy.getAll('@myProject1', '@testCollection', '@testCollection2')
325             .then(function ([myProject1, testCollection, testCollection2]) {
326                 cy.readFile('cypress/fixtures/'+yamlfile).then(workflow => {
327                     cy.createWorkflow(adminUser.token, {
328                         name: `TestWorkflow${Math.floor(Math.random() * 999999)}.cwl`,
329                         definition: workflow,
330                         owner_uuid: myProject1.uuid,
331                     })
332                         .as('testWorkflow');
333                 });
334
335                 cy.loginAs(activeUser);
336
337                 cy.get('main').contains(myProject1.name).click();
338
339                 cy.waitForDom();
340
341                 cy.get('[data-cy=side-panel-button]').click();
342
343                 cy.get('#aside-menu-list').contains('Run a workflow').click();
344
345                 cy.get('@testWorkflow')
346                     .then((testWorkflow) => {
347                         cy.get('main').contains(testWorkflow.name).click();
348                         cy.get('[data-cy=run-process-next-button]').click();
349
350                         cy.get('label').contains('foo').parent('div').find('input').click();
351                         cy.get('div[role=dialog]')
352                             .within(() => {
353                                 // must use .then to avoid selecting instead of expanding https://github.com/cypress-io/cypress/issues/5529
354                                 cy.get('p').contains('Home Projects').closest('ul')
355                                     .find('i')
356                                     .then(el => el.click());
357
358                                 cy.get(`[data-id=${testCollection.uuid}]`)
359                                     .find('i').click();
360
361                                 cy.wait(1000);
362                                 cy.contains('bar').closest('[data-action=TOGGLE_ACTIVE]').parent().find('input[type=checkbox]').click();
363                                 cy.contains('baz').closest('[data-action=TOGGLE_ACTIVE]').parent().find('input[type=checkbox]').click();
364
365                                 cy.get('[data-cy=ok-button]').click();
366                             });
367
368                         cy.get('label').contains('bar').parent('div').find('input').click();
369                         cy.get('div[role=dialog]')
370                             .within(() => {
371                                 // must use .then to avoid selecting instead of expanding https://github.com/cypress-io/cypress/issues/5529
372                                 cy.get('p').contains('Home Projects').closest('ul')
373                                     .find('i')
374                                     .then(el => el.click());
375
376                                 cy.get(`[data-id=${testCollection.uuid}]`)
377                                     .find('input[type=checkbox]').click();
378
379                                 cy.get(`[data-id=${testCollection2.uuid}]`)
380                                     .find('input[type=checkbox]').click();
381
382                                 cy.get('[data-cy=ok-button]').click();
383                             });
384                     });
385
386                 cy.get('label').contains('foo').parent('div')
387                     .within(() => {
388                         cy.contains('baz');
389                         cy.contains('bar');
390                     });
391
392                 cy.get('label').contains('bar').parent('div')
393                     .within(() => {
394                         cy.contains(testCollection.name);
395                         cy.contains(testCollection2.name);
396                     });
397             });
398     }));
399
400     it('allows selecting collection subdirectories and reselects existing selections', () => {
401         cy.createProject({
402             owningUser: activeUser,
403             projectName: 'myProject1',
404             addToFavorites: true
405         });
406
407         cy.createCollection(adminUser.token, {
408             name: `Test collection ${Math.floor(Math.random() * 999999)}`,
409             owner_uuid: activeUser.user.uuid,
410             manifest_text: "./subdir/dir1 d41d8cd98f00b204e9800998ecf8427e+0 0:0:\\056\n./subdir/dir2 d41d8cd98f00b204e9800998ecf8427e+0 0:0:\\056\n"
411         })
412             .as('testCollection');
413
414         cy.getAll('@myProject1', '@testCollection')
415             .then(function ([myProject1, testCollection]) {
416                 cy.readFile('cypress/fixtures/workflow_directory_array.yaml').then(workflow => {
417                     cy.createWorkflow(adminUser.token, {
418                         name: `TestWorkflow${Math.floor(Math.random() * 999999)}.cwl`,
419                         definition: workflow,
420                         owner_uuid: myProject1.uuid,
421                     })
422                         .as('testWorkflow');
423                 });
424
425                 cy.loginAs(activeUser);
426
427                 cy.get('main').contains(myProject1.name).click();
428
429                 cy.waitForDom();
430
431                 cy.get('[data-cy=side-panel-button]').click();
432
433                 cy.get('#aside-menu-list').contains('Run a workflow').click();
434
435                 cy.get('@testWorkflow')
436                     .then((testWorkflow) => {
437                         cy.get('main').contains(testWorkflow.name).click();
438                         cy.get('[data-cy=run-process-next-button]').click();
439
440                         cy.get('label').contains('directoryInputName').parent('div').find('input').click();
441                         cy.get('div[role=dialog]')
442                             .within(() => {
443                                 // must use .then to avoid selecting instead of expanding https://github.com/cypress-io/cypress/issues/5529
444                                 cy.get('p').contains('Home Projects').closest('ul')
445                                     .find('i')
446                                     .then(el => el.click());
447
448                                 cy.get(`[data-id=${testCollection.uuid}]`)
449                                     .find('i').click();
450
451                                 cy.get(`[data-id="${testCollection.uuid}/subdir"]`)
452                                     .find('i').click();
453
454                                 cy.contains('dir1').closest('[data-action=TOGGLE_ACTIVE]').parent().find('input[type=checkbox]').click();
455                                 cy.contains('dir2').closest('[data-action=TOGGLE_ACTIVE]').parent().find('input[type=checkbox]').click();
456
457                                 cy.get('[data-cy=ok-button]').click();
458                             });
459
460                         // Verify subdirectories were selected
461                         cy.get('label').contains('directoryInputName').parent('div')
462                             .within(() => {
463                                 cy.contains('dir1');
464                                 cy.contains('dir2');
465                             });
466
467                         // Reopen tree picker and verify subdirectories are preselected
468                         cy.get('label').contains('directoryInputName').parent('div').find('input').click();
469                         cy.waitForDom().get('div[role=dialog]')
470                             .within(() => {
471                                 cy.contains('dir1').closest('[data-action=TOGGLE_ACTIVE]').parent().find('input[type=checkbox]').should('be.checked');
472                                 cy.contains('dir2').closest('[data-action=TOGGLE_ACTIVE]').parent().find('input[type=checkbox]').should('be.checked');
473                             });
474                     });
475
476             });
477     })
478
479     it('handles secret inputs', () => {
480         cy.createProject({
481             owningUser: activeUser,
482             projectName: 'myProject1',
483             addToFavorites: true
484         });
485
486         cy.setupDockerImage("arvados/jobs").as("dockerImg");
487
488         cy.getAll('@myProject1').then(function ([myProject1]) {
489                 cy.readFile('cypress/fixtures/workflow_with_secret_input.yaml').then(workflow => {
490                     cy.createWorkflow(adminUser.token, {
491                         name: `TestWorkflow${Math.floor(Math.random() * 999999)}.cwl`,
492                         definition: workflow,
493                         owner_uuid: myProject1.uuid,
494                     })
495                         .as('testWorkflow');
496                 });
497
498                 cy.loginAs(activeUser);
499
500                 cy.get('main').contains(myProject1.name).click();
501
502                 cy.get('[data-cy=side-panel-button]').click();
503
504                 cy.get('#aside-menu-list').contains('Run a workflow').click();
505
506                 cy.get('@testWorkflow')
507                     .then((testWorkflow) => {
508                         cy.get('main').contains(testWorkflow.name).click();
509                         cy.get('[data-cy=run-process-next-button]').click();
510
511                         var foo = cy.get('label').contains('foo').parent('div').find('input');
512                         foo.type("secret_value_xyz");
513                         foo.should('have.attr', 'type').and('equal', 'password');
514
515                         var bar = cy.get('label').contains('bar').parent('div').find('input');
516                         bar.type("exposed_value_xyz");
517                         bar.should('have.attr', 'type').and('equal', 'text');
518                     });
519             cy.get('[data-cy=new-process-panel]').contains('Run workflow').click();
520
521             cy.get('[data-cy=process-io-card]').should('contain', 'exposed_value_xyz');
522             cy.get('[data-cy=process-io-card]').should('contain', 'Cannot display secret');
523             cy.get('[data-cy=process-io-card]').should('not.contain', 'secret_value_xyz');
524
525             cy.url().then((url) => {
526                 let uuid = url.split('/').pop();
527                 cy.getResource(activeUser.token, "container_requests", uuid).then((res) => {
528                     expect(res.mounts["/var/lib/cwl/cwl.input.json"].content.bar).to.equal('exposed_value_xyz');
529                     expect(res.mounts["/var/lib/cwl/cwl.input.json"].content.foo).to.deep.equal({$include: '/secrets/s0'});
530                 });
531             });
532
533         });
534     });
535 })