[ARVADOS] updated: 5f7c3a3a4a6926edb67ecb46d8aa3649a47a2643

git at public.curoverse.com git at public.curoverse.com
Mon Nov 30 15:18:22 EST 2015


Summary of changes:
 .../arvados/v1/keep_services_controller_test.rb          | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

       via  5f7c3a3a4a6926edb67ecb46d8aa3649a47a2643 (commit)
      from  0a07e7988fe6e800d2f31620b19aa1ab0b1a344b (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 5f7c3a3a4a6926edb67ecb46d8aa3649a47a2643
Author: Tom Clegg <tom at curoverse.com>
Date:   Mon Nov 30 15:28:19 2015 -0500

    7710: Add keep_services#accessible test.

diff --git a/services/api/test/functional/arvados/v1/keep_services_controller_test.rb b/services/api/test/functional/arvados/v1/keep_services_controller_test.rb
index bfa138d..1375d4c 100644
--- a/services/api/test/functional/arvados/v1/keep_services_controller_test.rb
+++ b/services/api/test/functional/arvados/v1/keep_services_controller_test.rb
@@ -2,7 +2,7 @@ require 'test_helper'
 
 class Arvados::V1::KeepServicesControllerTest < ActionController::TestCase
 
-  test "search keep_services by service_port with < query" do
+  test "search by service_port with < query" do
     authorize_with :active
     get :index, {
       filters: [['service_port', '<', 25107]]
@@ -11,7 +11,7 @@ class Arvados::V1::KeepServicesControllerTest < ActionController::TestCase
     assert_equal false, assigns(:objects).any?
   end
 
-  test "search keep_disks by service_port with >= query" do
+  test "search by service_port with >= query" do
     authorize_with :active
     get :index, {
       filters: [['service_port', '>=', 25107]]
@@ -20,4 +20,16 @@ class Arvados::V1::KeepServicesControllerTest < ActionController::TestCase
     assert_equal true, assigns(:objects).any?
   end
 
+  [:admin, :active, :inactive, :anonymous].each do |u|
+    test "accessible to #{u} user" do
+      authorize_with u
+      get :accessible
+      assert_response :success
+      assert_not_empty json_response['items']
+      json_response['items'].each do |ks|
+        assert_not_equal ks['service_type'], 'proxy'
+      end
+    end
+  end
+
 end

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list