X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7daef1e224ee6fb8b03cd7b71773c5381c07324e..HEAD:/services/api/test/fixtures/workflows.yml diff --git a/services/api/test/fixtures/workflows.yml b/services/api/test/fixtures/workflows.yml index d7818f26f3..ad9c7d2676 100644 --- a/services/api/test/fixtures/workflows.yml +++ b/services/api/test/fixtures/workflows.yml @@ -1,17 +1,94 @@ -workflow_with_workflow_yml: +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + +workflow_with_definition_yml: uuid: zzzzz-7fd4e-validworkfloyml owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz - name: Valid workflow - description: this work has a valid workflow yaml - workflow: "name: foo\ndesc: bar" + name: Valid workflow with name and desc + description: this workflow has a valid definition yaml + definition: "name: foo\ndesc: bar" + created_at: 2016-08-15 12:00:00 -workflow_with_no_workflow_yml: +workflow_with_no_definition_yml: uuid: zzzzz-7fd4e-validbutnoyml00 owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz - name: Valid workflow with no workflow yaml - description: this workflow does not have a workflow yaml + name: Valid workflow with no definition yaml + description: this workflow does not have a definition yaml + created_at: 2016-08-15 12:00:00 workflow_with_no_name_and_desc: uuid: zzzzz-7fd4e-validnonamedesc owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz - workflow: this is valid yaml + definition: this is valid yaml + created_at: 2016-08-15 12:00:01 + +workflow_with_input_specifications: + uuid: zzzzz-7fd4e-validwithinputs + owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0 + name: Workflow with input specifications + description: this workflow has inputs specified + created_at: <%= 1.minute.ago.to_fs(:db) %> + definition: | + cwlVersion: v1.0 + class: CommandLineTool + baseCommand: + - echo + inputs: + - doc: a longer documentation string for this parameter (optional) + type: boolean + id: ex_boolean + label: a short label for this parameter (optional) + inputBinding: + position: 1 + - type: + - 'null' + - boolean + id: ex_boolean_opt + inputBinding: + position: 1 + outputs: [] + +workflow_with_input_defaults: + uuid: zzzzz-7fd4e-validwithinput2 + owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0 + name: Workflow with default input specifications + description: this workflow has inputs specified + created_at: <%= 1.minute.ago.to_fs(:db) %> + definition: | + cwlVersion: v1.0 + class: CommandLineTool + baseCommand: + - echo + inputs: + - type: string + id: ex_string + - type: string + id: ex_string_def + default: hello-testing-123 + outputs: [] + +workflow_with_wrr: + uuid: zzzzz-7fd4e-validwithinput3 + owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0 + name: Workflow with WorkflowRunnerResources + description: this workflow has WorkflowRunnerResources + created_at: <%= 1.minute.ago.to_fs(:db) %> + definition: | + cwlVersion: v1.0 + class: CommandLineTool + hints: + - class: http://arvados.org/cwl#WorkflowRunnerResources + acrContainerImage: arvados/jobs:2.0.4 + ramMin: 1234 + coresMin: 2 + keep_cache: 678 + baseCommand: + - echo + inputs: + - type: string + id: ex_string + - type: string + id: ex_string_def + default: hello-testing-123 + outputs: []