[ARVADOS] updated: 16b720950262eb559358cf357f5098a142901665

git at public.curoverse.com git at public.curoverse.com
Mon Feb 9 20:12:08 EST 2015


Summary of changes:
 .../api/test/functional/arvados/v1/collections_controller_test.rb  | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

       via  16b720950262eb559358cf357f5098a142901665 (commit)
      from  b6a7a62f4f38710f50d08a91a6a9b210700bb011 (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 16b720950262eb559358cf357f5098a142901665
Author: Brett Smith <brett at curoverse.com>
Date:   Mon Feb 9 20:12:00 2015 -0500

    5176: Update API Collections test to accommodate new fixtures.

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 c3b5303..61b0557 100644
--- a/services/api/test/functional/arvados/v1/collections_controller_test.rb
+++ b/services/api/test/functional/arvados/v1/collections_controller_test.rb
@@ -345,14 +345,15 @@ EOS
   end
 
   test "search collections with 'any' operator" do
+    expect_pdh = collections(:docker_image).portable_data_hash
     authorize_with :active
     get :index, {
-      where: { any: ['contains', 'd0bc8c7f34be170a7b7b'] }
+      where: { any: ['contains', expect_pdh[5..25]] }
     }
     assert_response :success
-    found = assigns(:objects).collect(&:portable_data_hash)
+    found = assigns(:objects)
     assert_equal 1, found.count
-    assert_equal true, !!found.index('5bd9c1ad0bc8c7f34be170a7b7b39089+45')
+    assert_equal expect_pdh, found.first.portable_data_hash
   end
 
   [false, true].each do |permit_unsigned|

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list