From 5b15dc0308bd3ddcc3c50828269888b5811d0007 Mon Sep 17 00:00:00 2001 From: Tim Pierce Date: Fri, 30 May 2014 14:40:37 -0400 Subject: [PATCH] 2755: add unit test for Collection.normalize_uuid. --- .../arvados/v1/collections_controller_test.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 afda91cc02..8b2725a4bd 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' -- 2.30.2