[ARVADOS] updated: 5b15dc0308bd3ddcc3c50828269888b5811d0007

git at public.curoverse.com git at public.curoverse.com
Fri May 30 14:41:37 EDT 2014


Summary of changes:
 .../functional/arvados/v1/collections_controller_test.rb   | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

       via  5b15dc0308bd3ddcc3c50828269888b5811d0007 (commit)
      from  b2812e9406253ded204ac853fb47437e8118bcdd (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 5b15dc0308bd3ddcc3c50828269888b5811d0007
Author: Tim Pierce <twp at curoverse.com>
Date:   Fri May 30 14:40:37 2014 -0400

    2755: add unit test for Collection.normalize_uuid.

diff --git a/services/api/test/functional/arvados/v1/collections_controller_test.rb b/services/api/test/functional/arvados/v1/collections_controller_test.rb
index afda91c..8b2725a 100644
--- a/services/api/test/functional/arvados/v1/collections_controller_test.rb
+++ b/services/api/test/functional/arvados/v1/collections_controller_test.rb
@@ -177,6 +177,20 @@ EOS
     assert_response 422
   end
 
+  test "collection UUID is normalized when created" do
+    authorize_with :active
+    post :create, {
+      collection: {
+        manifest_text: ". d41d8cd98f00b204e9800998ecf8427e 0:0:foo.txt\n",
+        uuid: "d30fe8ae534397864cb96c544f4cf102+47+Khint+Xhint+Zhint"
+      }
+    }
+    assert_response :success
+    assert_not_nil assigns(:object)
+    resp = JSON.parse(@response.body)
+    assert_equal "d30fe8ae534397864cb96c544f4cf102+47", resp['uuid']
+  end
+
   test "get full provenance for baz file" do
     authorize_with :active
     get :provenance, id: 'ea10d51bcf88862dbcc36eb292017dfd+45'

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list