[ARVADOS] updated: 4587f806061ee6d3e82f40a79512a847b1d5e8ee

Git user git at public.curoverse.com
Fri Sep 8 10:19:24 EDT 2017


Summary of changes:
 services/api/test/test_helper.rb | 5 +++++
 1 file changed, 5 insertions(+)

       via  4587f806061ee6d3e82f40a79512a847b1d5e8ee (commit)
      from  d03fcecb39335ac364e3f6f11cdfdc668fbda559 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 4587f806061ee6d3e82f40a79512a847b1d5e8ee
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu Sep 7 17:44:10 2017 -0400

    12032: Controller & integration test teardown invalidates permission view.
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>

diff --git a/services/api/test/test_helper.rb b/services/api/test/test_helper.rb
index a614aa6..6c330dd 100644
--- a/services/api/test/test_helper.rb
+++ b/services/api/test/test_helper.rb
@@ -145,6 +145,10 @@ class ActionController::TestCase
     @test_counter = 0
   end
 
+  teardown do
+    User.invalidate_permissions_cache
+  end
+
   def check_counter action
     @test_counter += 1
     if @test_counter == 2
@@ -182,6 +186,7 @@ class ActionDispatch::IntegrationTest
     Thread.current[:api_client_uuid] = nil
     Thread.current[:api_client] = nil
     Thread.current[:user] = nil
+    User.invalidate_permissions_cache
   end
 end
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list