From 297b42cd7557a7508cdbf091163da48bbd52a79a Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 28 Jul 2014 09:52:47 +0200 Subject: use ApiController#anonymous_access_allowed? There are some places where we only want to require login unless you can use EIP anonymously. So far we had an anonymous_certs_allowed? method in all these controllers. Now it's replaced with ApiController#anonymous_access_allowed?. The naming better reflects that there might be other services that allow anonymous use at some point. This also fixed a typo name -> @filename that broke the ConfigsController. --- test/functional/v1/services_controller_test.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/functional') diff --git a/test/functional/v1/services_controller_test.rb b/test/functional/v1/services_controller_test.rb index cde7d9f..039eb27 100644 --- a/test/functional/v1/services_controller_test.rb +++ b/test/functional/v1/services_controller_test.rb @@ -4,9 +4,8 @@ class V1::ServicesControllerTest < ActionController::TestCase test "anonymous user gets login required service info" do get :show, format: :json - assert_json_response name: 'anonymous', - eip_rate_limit: false, - description: 'please login to access our services' + assert_json_response error: 'not_authorized_login', + message: 'Please log in to perform that action.' end test "anonymous user gets vpn service info" do -- cgit v1.2.3