4015: fix pipeline instance tests
[arvados.git] / services / api / test / fixtures / pipeline_instances.yml
index 9a1a504289d19e261c13a1700b553a9769935a11..53305ade85aedcee93635dca04f090bed7e2b68c 100644 (file)
@@ -155,14 +155,14 @@ pipeline_with_newer_template:
 # 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 1..10 do %>
+<% for i in 0..9 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: <%= i.hour.ago.to_s(:db) %>
-  started_at: <%= i.hour.ago.to_s(:db) %>
+  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) %>
   components:
     foo:
@@ -176,7 +176,7 @@ pipeline_<%=i%>_of_10:
 <% end %>
 
 # pipelines in project_with_2_pipelines_and_200_jobs
-<% for i in 1..2 do %>
+<% for i in 0..1 do %>
 pipeline_<%=i%>_of_2_pipelines_and_200_jobs:
   name: pipeline_<%= i %>
   state: New
@@ -195,7 +195,7 @@ pipeline_<%=i%>_of_2_pipelines_and_200_jobs:
 <% end %>
 
 # pipelines in project_with_25_pipelines
-<% for i in 1..25 do %>
+<% for i in 0..24 do %>
 pipeline_<%=i%>_of_25:
   name: pipeline_<%=i%>
   state: Failed