Merge branch '3901-component-rendering-errors'
[arvados.git] / services / api / test / fixtures / pipeline_instances.yml
1 new_pipeline:
2   state: New
3   uuid: zzzzz-d1hrv-f4gneyn6br1xize
4   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
5   created_at: <%= 1.minute.ago.to_s(:db) %>
6
7 has_component_with_no_script_parameters:
8   state: Ready
9   uuid: zzzzz-d1hrv-1xfj6xkicf2muk2
10   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
11   created_at: <%= 10.minute.ago.to_s(:db) %>
12   components:
13    foo:
14     script: foo
15     script_version: master
16     script_parameters: {}
17
18 has_component_with_empty_script_parameters:
19   state: Ready
20   uuid: zzzzz-d1hrv-jq16l10gcsnyumo
21   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
22   created_at: <%= 3.minute.ago.to_s(:db) %>
23   components:
24    foo:
25     script: foo
26     script_version: master
27
28 has_component_with_completed_jobs:
29   # Test that the job "started_at" and "finished_at" fields are
30   # parsed into Time fields when rendering. This job must *not*
31   # have its own fixture; the point is to force the
32   # pipeline_instances_controller_test in Workbench to parse
33   # the "components" field.
34   state: Complete
35   uuid: zzzzz-d1hrv-i3e77t9z5y8j9cc
36   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
37   components:
38    foo:
39     script: foo
40     script_version: master
41     script_parameters: {}
42     job:
43       uuid: zzzzz-8i9sb-rft1xdewxkwgxnz
44       script_version: master
45       started_at: <%= 10.minute.ago.to_s(:db) %>
46       finished_at: <%= 9.minute.ago.to_s(:db) %>
47
48 has_job:
49   name: pipeline_with_job
50   state: Ready
51   uuid: zzzzz-d1hrv-1yfj6xkidf2muk3
52   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
53   created_at: <%= 3.1.minute.ago.to_s(:db) %>
54   components:
55    foo:
56     script: foo
57     script_version: master
58     script_parameters: {}
59     job: {
60             uuid: zzzzz-8i9sb-pshmckwoma9plh7,
61             script_version: master
62          }
63
64 components_is_jobspec:
65   # Helps test that clients cope with funny-shaped components.
66   # For an example, see #3321.
67   uuid: zzzzz-d1hrv-jobspeccomponts
68   created_at: <%= 30.minute.ago.to_s(:db) %>
69   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
70   created_at: 2014-04-14 12:35:04 -0400
71   updated_at: 2014-04-14 12:35:04 -0400
72   modified_at: 2014-04-14 12:35:04 -0400
73   modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr
74   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
75   state: RunningOnServer
76   components:
77     script: foo
78     script_version: master
79     script_parameters:
80       input:
81         required: true
82         dataclass: Collection
83         title: "Foo/bar pair"
84         description: "Provide a collection containing at least two files."