assert_not page.has_text? 'Graph'
end
- (1..20).each do |index|
+ (1..10).each do |index|
test "pipeline start and finish time display #{index}" do
- visit page_with_token("user1_with_load", "/pipeline_instances/zzzzz-d1hrv-25pipelines0#{index.to_s.rjust(3, '0')}")
+ visit page_with_token("user1_with_load", "/pipeline_instances/zzzzz-d1hrv-10pipelines0#{index.to_s.rjust(3, '0')}")
assert page.has_text? 'This pipeline started at'
page_text = page.text
[
['project with 10 pipelines', 10, 0],
- ['project with 200 jobs and 10 pipelines', 2, 200],
+ ['project with 2 pipelines and 200 jobs', 2, 200],
['project with 25 pipelines', 25, 0],
].each do |project_name, num_pipelines, num_jobs|
test "scroll pipeline instances tab for #{project_name} with #{num_pipelines} pipelines and #{num_jobs} jobs" do
description: project with 10 pipelines
group_class: project
-project_with_10_pipelines_and_200_jobs:
+project_with_2_pipelines_and_200_jobs:
uuid: zzzzz-j7d0g-nnjobspipelines
owner_uuid: zzzzz-tpzed-user1withloadab
created_at: 2014-04-21 15:37:48 -0400
modified_by_user_uuid: zzzzz-tpzed-user1withloadab
modified_at: 2014-04-21 15:37:48 -0400
updated_at: 2014-04-21 15:37:48 -0400
- name: project with 200 jobs and 10 pipelines
+ name: project with 2 pipelines and 200 jobs
description: This will result in two pages in the display
group_class: project
# Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper
-# jobs in project_with_10_pipelines_and_200_jobs
+# jobs in project_with_2_pipelines_and_200_jobs
<% for i in 1..200 do %>
job_<%=i%>_of_200:
uuid: zzzzz-8i9sb-0vsrcqi7whch<%= i.to_s.rjust(3, '0') %>
<% for i in 1..10 do %>
pipeline_<%=i%>_of_10:
name: pipeline_<%= i %>
- state: New
- uuid: zzzzz-d1hrv-10gneyn6br1x<%= i.to_s.rjust(3, '0') %>
+ state: Failed
+ uuid: zzzzz-d1hrv-10pipelines0<%= i.to_s.rjust(3, '0') %>
owner_uuid: zzzzz-j7d0g-000010pipelines
- created_at: <%= i.minute.ago.to_s(:db) %>
+ created_at: <%= i.hour.ago.to_s(:db) %>
+ started_at: <%= i.hour.ago.to_s(:db) %>
+ finished_at: <%= i.minute.ago.to_s(:db) %>
components:
foo:
script: foo
title: foo instance input
<% end %>
-# pipelines in project_with_10_pipelines_and_200_jobs
+# pipelines in project_with_2_pipelines_and_200_jobs
<% for i in 1..2 do %>
-pipeline_<%=i%>_of_10_pipelines_and_200_jobs:
+pipeline_<%=i%>_of_2_pipelines_and_200_jobs:
name: pipeline_<%= i %>
state: New
uuid: zzzzz-d1hrv-abcgneyn6brx<%= i.to_s.rjust(3, '0') %>