11453: Move remote token validation to middleware. Bypass Ruby SDK.
[arvados.git] / services / api / test / integration / permissions_test.rb
index e4db862415835be5a430837a999d9e2aa75531ea..49fa473b6b9a08460fe805708ecea385e1a7f26b 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 require 'test_helper'
 
 class PermissionsTest < ActionDispatch::IntegrationTest
@@ -5,10 +9,6 @@ class PermissionsTest < ActionDispatch::IntegrationTest
   include CurrentApiClient  # for empty_collection
   fixtures :users, :groups, :api_client_authorizations, :collections
 
-  teardown do
-    User.invalidate_permissions_cache db_current_time.to_i
-  end
-
   test "adding and removing direct can_read links" do
     # try to read collection as spectator
     get "/arvados/v1/collections/#{collections(:foo_file).uuid}", {:format => :json}, auth(:spectator)