[ARVADOS] updated: 76c61ffb15b51c00a174a6f73a96ab84df69f0f6

git at public.curoverse.com git at public.curoverse.com
Tue Jul 15 13:01:08 EDT 2014


Summary of changes:
 .../arvados/v1/job_reuse_controller_test.rb          | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

       via  76c61ffb15b51c00a174a6f73a96ab84df69f0f6 (commit)
      from  f85c6cf14fada8b2ad4b6b7e6e7e9cf9852ce83d (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 76c61ffb15b51c00a174a6f73a96ab84df69f0f6
Author: Brett Smith <brett at curoverse.com>
Date:   Tue Jul 15 13:02:03 2014 -0400

    3195: Add job reuse test.
    
    I wrote this while debugging a user-reported issue.  Ultimately the
    issue ended up being a bug in the database, but no point letting a
    good test go to waste.
    
    Refs #3195.

diff --git a/services/api/test/functional/arvados/v1/job_reuse_controller_test.rb b/services/api/test/functional/arvados/v1/job_reuse_controller_test.rb
index a22a493..f17923d 100644
--- a/services/api/test/functional/arvados/v1/job_reuse_controller_test.rb
+++ b/services/api/test/functional/arvados/v1/job_reuse_controller_test.rb
@@ -50,6 +50,26 @@ class Arvados::V1::JobReuseControllerTest < ActionController::TestCase
     assert_equal '4fe459abe02d9b365932b8f5dc419439ab4e2577', new_job['script_version']
   end
 
+  test "reuse job with symbolic script_version" do
+    post :create, {
+      job: {
+        script: "hash",
+        script_version: "tag1",
+        repository: "foo",
+        script_parameters: {
+          input: 'fa7aeb5140e2848d39b416daeef4ffc5+45',
+          an_integer: '1'
+        }
+      },
+      find_or_create: true
+    }
+    assert_response :success
+    assert_not_nil assigns(:object)
+    new_job = JSON.parse(@response.body)
+    assert_equal 'zzzzz-8i9sb-cjs4pklxxjykqqq', new_job['uuid']
+    assert_equal '4fe459abe02d9b365932b8f5dc419439ab4e2577', new_job['script_version']
+  end
+
   test "do not reuse job because no_reuse=true" do
     post :create, {
       job: {

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list