X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/41c7c826a7e4c3a074a6ab5a719bf4c88e9a0e28..2f91702d89b7a64093465a1923b87acade6b9715:/services/api/test/test_helper.rb diff --git a/services/api/test/test_helper.rb b/services/api/test/test_helper.rb index 8e3399523e..a81bfdf9e4 100644 --- a/services/api/test/test_helper.rb +++ b/services/api/test/test_helper.rb @@ -24,6 +24,9 @@ class ActionDispatch::IntegrationTest def jresponse @jresponse ||= ActiveSupport::JSON.decode @response.body end + def auth auth_fixture + {'HTTP_AUTHORIZATION' => "OAuth2 #{api_client_authorizations(auth_fixture).api_token}"} + end end # Ensure permissions are computed from the test fixtures.