2872: add test for a pipeline instance with job associated so that the provenance...
authorradhika <radhika@curoverse.com>
Fri, 6 Jun 2014 23:15:30 +0000 (19:15 -0400)
committerradhika <radhika@curoverse.com>
Fri, 6 Jun 2014 23:15:30 +0000 (19:15 -0400)
apps/workbench/test/integration/pipeline_instances_test.rb
services/api/test/fixtures/pipeline_instances.yml

index c3ec3f582931220c43c90d401b6c3152e60f11a3..4c100c21a408b270cd05d0ba9d14deefc4874631 100644 (file)
@@ -80,4 +80,18 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest
     assert_not page.has_text? 'Graph'
   end
 
+  test 'view pipeline with job and see graph' do
+    visit page_with_token('active_trustedclient')
+
+    visit '/pipeline_instances'
+    assert page.has_text? 'pipeline_with_job'
+
+    find('a', text: 'pipeline_with_job').click
+
+    # since the pipeline component has a job, expect to see the graph
+    assert page.has_text? 'Graph'
+    click_link 'Graph'
+    assert page.has_text? 'script_version'
+  end
+
 end
index b5e1bc1c6bf2e44683b2ff18eccfc7593c8c8818..823116fda412b805b9bc76dbc40065b7eb99c889 100644 (file)
@@ -21,3 +21,19 @@ has_component_with_empty_script_parameters:
    foo:
     script: foo
     script_version: master
+
+has_job:
+  name: pipeline_with_job
+  state: Ready
+  uuid: zzzzz-d1hrv-1yfj6xkidf2muk3
+  owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
+  owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
+  components:
+   foo:
+    script: foo
+    script_version: master
+    script_parameters: {}
+    job: {
+            uuid: zzzzz-8i9sb-pshmckwoma9plh7,
+            script_version: master
+         }