4227: some more test and fixture updates.
authorradhika <radhika@curoverse.com>
Tue, 21 Oct 2014 17:48:35 +0000 (13:48 -0400)
committerradhika <radhika@curoverse.com>
Tue, 21 Oct 2014 17:48:35 +0000 (13:48 -0400)
apps/workbench/test/integration/pipeline_instances_test.rb
apps/workbench/test/integration/projects_test.rb
services/api/test/fixtures/groups.yml
services/api/test/fixtures/jobs.yml
services/api/test/fixtures/pipeline_instances.yml

index 7ae715a7e2695c27fce4bcf2efdcf6805a037cb0..65479339941332548b471819a0a5d087a740b402 100644 (file)
@@ -313,9 +313,9 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest
     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
index cccfd9983a390b3a36270768e58b860933e4de08..17d818d14bc6de275bc8e75f7d7116a5b128b966 100644 (file)
@@ -549,7 +549,7 @@ class ProjectsTest < ActionDispatch::IntegrationTest
 
   [
     ['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
index 61c4b0a81c74c58ca065d3fe3854a2e613145372..764261daea7b898b857e39c09067c9ec09d97dfa 100644 (file)
@@ -173,7 +173,7 @@ project_with_10_pipelines:
   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
@@ -181,7 +181,7 @@ project_with_10_pipelines_and_200_jobs:
   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
 
index 292c27e2e37057848050f2d81da7e79d89eb0d53..1381078ee1b1c3f5db3288c663e624a56429c287 100644 (file)
@@ -299,7 +299,7 @@ job_in_subproject:
 
 # 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') %>
index 09caf93d39b39c78fb2fe8a5458d9ed4cf6bb932..9a1a504289d19e261c13a1700b553a9769935a11 100644 (file)
@@ -158,10 +158,12 @@ pipeline_with_newer_template:
 <% 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
@@ -173,9 +175,9 @@ pipeline_<%=i%>_of_10:
           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') %>