[ARVADOS] updated: dde9d2845e69c4e2b50964e6a00f3fdb9053dbf6

git at public.curoverse.com git at public.curoverse.com
Wed Jan 14 14:15:05 EST 2015


Summary of changes:
 services/api/test/integration/collections_api_test.rb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

       via  dde9d2845e69c4e2b50964e6a00f3fdb9053dbf6 (commit)
      from  57f1fd52bb98ac58751e8c9a8f874eca1668b65b (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 dde9d2845e69c4e2b50964e6a00f3fdb9053dbf6
Author: Radhika Chippada <radhika at curoverse.com>
Date:   Wed Jan 14 14:14:38 2015 -0500

    4523: update signed_locator in test

diff --git a/services/api/test/integration/collections_api_test.rb b/services/api/test/integration/collections_api_test.rb
index 703b4e9..b1991c4 100644
--- a/services/api/test/integration/collections_api_test.rb
+++ b/services/api/test/integration/collections_api_test.rb
@@ -158,7 +158,12 @@ class CollectionsApiTest < ActionDispatch::IntegrationTest
 
   test "create collection, update manifest, and search with filename" do
     # create collection
-    signed_locator = Collection.sign_manifest("0:44:my_test_file.txt\n", api_token(:active))
+    signing_opts = {
+      key: Rails.configuration.blob_signing_key,
+      api_token: api_token(:active),
+    }
+    signed_locator = Blob.sign_locator('bad42fa702ae3ea7d888fef11b46f450+44', signing_opts)
+
     post "/arvados/v1/collections", {
       format: :json,
       collection: "{\"manifest_text\":\". #{signed_locator} 0:44:my_test_file.txt\\n\"}"
@@ -172,7 +177,6 @@ class CollectionsApiTest < ActionDispatch::IntegrationTest
     search_using_filter 'my_test_file.txt', 1
 
     # update the collection's manifest text
-    signed_locator = Collection.sign_manifest("0:44:my_updated_test_file.txt\n", api_token(:active))
     put "/arvados/v1/collections/#{created['uuid']}", {
       format: :json,
       collection: "{\"manifest_text\":\". #{signed_locator} 0:44:my_updated_test_file.txt\\n\"}"

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list