[ARVADOS] updated: 93e77cdfaec21c3f53bf9efa3cfddb75971b12b7

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


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

       via  93e77cdfaec21c3f53bf9efa3cfddb75971b12b7 (commit)
       via  f5588e5c01baf3084ad42d8be506c4698b1affce (commit)
      from  dde9d2845e69c4e2b50964e6a00f3fdb9053dbf6 (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 93e77cdfaec21c3f53bf9efa3cfddb75971b12b7
Merge: dde9d28 f5588e5
Author: Radhika Chippada <radhika at curoverse.com>
Date:   Wed Jan 14 15:21:03 2015 -0500

    Merge branch '4523-search-index-TC' into 4523-search-index
    
    Conflicts:
    	services/api/test/integration/collections_api_test.rb


commit f5588e5c01baf3084ad42d8be506c4698b1affce
Author: Tom Clegg <tom at curoverse.com>
Date:   Wed Jan 14 14:41:39 2015 -0500

    4523: Clear up manifest-signing vs. locator-signing.

diff --git a/services/api/test/integration/collections_api_test.rb b/services/api/test/integration/collections_api_test.rb
index 703b4e9..bea76aa 100644
--- a/services/api/test/integration/collections_api_test.rb
+++ b/services/api/test/integration/collections_api_test.rb
@@ -158,10 +158,10 @@ 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))
+    signed_manifest = Collection.sign_manifest(". bad42fa702ae3ea7d888fef11b46f450+44 0:44:my_test_file.txt\n", api_token(:active))
     post "/arvados/v1/collections", {
       format: :json,
-      collection: "{\"manifest_text\":\". #{signed_locator} 0:44:my_test_file.txt\\n\"}"
+      collection: {manifest_text: signed_manifest}.to_json,
     }, auth(:active)
     assert_response :success
     assert_equal true, json_response['manifest_text'].include?('my_test_file.txt')
@@ -172,10 +172,10 @@ 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))
+    signed_manifest = Collection.sign_manifest(". bad42fa702ae3ea7d888fef11b46f450+44 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\"}"
+      collection: {manifest_text: signed_manifest}.to_json,
     }, auth(:active)
     assert_response :success
     assert_equal created['uuid'], json_response['uuid']

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list