X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8a0e9c549595e114a0eadc9d6792a17fb59d0f3e..b612ef0640ea45f03ad43ed4b124be1034d21071:/services/api/test/test_helper.rb diff --git a/services/api/test/test_helper.rb b/services/api/test/test_helper.rb index e87a1c6d8a..c99a57aaff 100644 --- a/services/api/test/test_helper.rb +++ b/services/api/test/test_helper.rb @@ -2,6 +2,8 @@ # # SPDX-License-Identifier: AGPL-3.0 +require 'update_permissions' + ENV["RAILS_ENV"] = "test" unless ENV["NO_COVERAGE_TEST"] begin @@ -99,8 +101,8 @@ class ActiveSupport::TestCase def restore_configuration # Restore configuration settings changed during tests - copy_into_config $arvados_config, Rails.configuration - copy_into_config $remaining_config, Rails.configuration + ConfigLoader.copy_into_config $arvados_config, Rails.configuration + ConfigLoader.copy_into_config $remaining_config, Rails.configuration end def set_user_from_auth(auth_name) @@ -207,4 +209,5 @@ class ActionDispatch::IntegrationTest end # Ensure permissions are computed from the test fixtures. -User.invalidate_permissions_cache +refresh_permissions +refresh_trashed