projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
closes #11840
[arvados.git]
/
services
/
api
/
test
/
integration
/
api_client_authorizations_scopes_test.rb
diff --git
a/services/api/test/integration/api_client_authorizations_scopes_test.rb
b/services/api/test/integration/api_client_authorizations_scopes_test.rb
index beef1953ae25f01cc675a1702ca1b983f4db2ff0..a1a20d428eb51454a49510ee52dc03fdef88ca20 100644
(file)
--- a/
services/api/test/integration/api_client_authorizations_scopes_test.rb
+++ b/
services/api/test/integration/api_client_authorizations_scopes_test.rb
@@
-4,11
+4,11
@@
require 'test_helper'
require 'test_helper'
-class A
rvados::V1::ApiTokensScopeTest < ActionController
::IntegrationTest
+class A
piTokensScopeTest < ActionDispatch
::IntegrationTest
fixtures :all
def v1_url(*parts)
fixtures :all
def v1_url(*parts)
- (['arvados', 'v1'] + parts).join('/')
+ (['
', '
arvados', 'v1'] + parts).join('/')
end
test "user list token can only list users" do
end
test "user list token can only list users" do
@@
-29,6
+29,8
@@
class Arvados::V1::ApiTokensScopeTest < ActionController::IntegrationTest
assert_response 403
get(v1_url('specimens', specimens(:owned_by_active_user).uuid), *get_args)
assert_response :success
assert_response 403
get(v1_url('specimens', specimens(:owned_by_active_user).uuid), *get_args)
assert_response :success
+ head(v1_url('specimens', specimens(:owned_by_active_user).uuid), *get_args)
+ assert_response :success
get(v1_url('specimens', specimens(:owned_by_spectator).uuid), *get_args)
assert_includes(403..404, @response.status)
end
get(v1_url('specimens', specimens(:owned_by_spectator).uuid), *get_args)
assert_includes(403..404, @response.status)
end