[ARVADOS] updated: 16527c125c469451d810951ded0860294950a1f0

git at public.curoverse.com git at public.curoverse.com
Fri Nov 7 17:36:57 EST 2014


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

       via  16527c125c469451d810951ded0860294950a1f0 (commit)
      from  cba838830cb4b47420573ba0187e0eebbc5b6f1f (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 16527c125c469451d810951ded0860294950a1f0
Author: Tom Clegg <tom at curoverse.com>
Date:   Fri Nov 7 17:36:52 2014 -0500

    4024: Test that items_available takes filters into account.

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 e5b17dd..b46bfe8 100644
--- a/services/api/test/functional/arvados/v1/collections_controller_test.rb
+++ b/services/api/test/functional/arvados/v1/collections_controller_test.rb
@@ -68,6 +68,18 @@ class Arvados::V1::CollectionsControllerTest < ActionController::TestCase
     assert_equal unique_uuids.count, resp['items'].count
   end
 
+  test "items.count == items_available with filters" do
+    authorize_with :active
+    get :index, {
+      limit: 100,
+      filters: [['uuid','=',collections(:foo_file).uuid]]
+    }
+    assert_response :success
+    assert_equal 1, assigns(:objects).length
+    assert_equal 1, json_response['items_available']
+    assert_equal 1, json_response['items'].count
+  end
+
   test "get index with limit=2 offset=99999" do
     # Assume there are not that many test fixtures.
     authorize_with :active

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list