Merge branch 'master' into 4358-graph-not-comparing
[arvados.git] / services / api / test / fixtures / pipeline_instances.yml
index 094c85ec31c68646c7f484d7910f2dfc31a5eb24..d42120a570b520eb0ec7ba40afcdc589502d230c 100644 (file)
@@ -190,15 +190,15 @@ pipeline_instance_in_fuse_project:
 # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper
 
 # pipelines in project_with_10_pipelines
-<% for i in 0..9 do %>
+<% for i in 1..10 do %>
 pipeline_<%=i%>_of_10:
   name: pipeline_<%= i %>
   state: Failed
   uuid: zzzzz-d1hrv-10pipelines0<%= i.to_s.rjust(3, '0') %>
   owner_uuid: zzzzz-j7d0g-000010pipelines
-  created_at: <%= (2*i).hour.ago.to_s(:db) %>
-  started_at: <%= (2*i).hour.ago.to_s(:db) %>
-  finished_at: <%= i.minute.ago.to_s(:db) %>
+  created_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
+  started_at: <%= (2*(i-1)).hour.ago.to_s(:db) %>
+  finished_at: <%= (i-1).minute.ago.to_s(:db) %>
   components:
     foo:
       script: foo
@@ -211,7 +211,7 @@ pipeline_<%=i%>_of_10:
 <% end %>
 
 # pipelines in project_with_2_pipelines_and_100_jobs
-<% for i in 0..1 do %>
+<% for i in 1..2 do %>
 pipeline_<%=i%>_of_2_pipelines_and_100_jobs:
   name: pipeline_<%= i %>
   state: New
@@ -230,7 +230,7 @@ pipeline_<%=i%>_of_2_pipelines_and_100_jobs:
 <% end %>
 
 # pipelines in project_with_25_pipelines
-<% for i in 0..24 do %>
+<% for i in 1..25 do %>
 pipeline_<%=i%>_of_25:
   name: pipeline_<%=i%>
   state: Failed