[ARVADOS] updated: 3ddef17b8c4893a1a0ba17cd7c1fd02ae6a47cb8
git at public.curoverse.com
git at public.curoverse.com
Fri Jun 6 19:19:25 EDT 2014
Summary of changes:
.../test/integration/pipeline_instances_test.rb | 14 ++++++++++++++
services/api/test/fixtures/pipeline_instances.yml | 16 ++++++++++++++++
2 files changed, 30 insertions(+)
via 3ddef17b8c4893a1a0ba17cd7c1fd02ae6a47cb8 (commit)
from 501ae28f1ed87af5f5d2b91546d8b973e1ee2a39 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 3ddef17b8c4893a1a0ba17cd7c1fd02ae6a47cb8
Author: radhika <radhika at curoverse.com>
Date: Fri Jun 6 19:15:30 2014 -0400
2872: add test for a pipeline instance with job associated so that the provenance graph can be tested.
diff --git a/apps/workbench/test/integration/pipeline_instances_test.rb b/apps/workbench/test/integration/pipeline_instances_test.rb
index c3ec3f5..4c100c2 100644
--- a/apps/workbench/test/integration/pipeline_instances_test.rb
+++ b/apps/workbench/test/integration/pipeline_instances_test.rb
@@ -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
diff --git a/services/api/test/fixtures/pipeline_instances.yml b/services/api/test/fixtures/pipeline_instances.yml
index b5e1bc1..823116f 100644
--- a/services/api/test/fixtures/pipeline_instances.yml
+++ b/services/api/test/fixtures/pipeline_instances.yml
@@ -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
+ }
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list