[ARVADOS] updated: 83332c0e546ad5e6332ce507224d9c6f64552ce6

Git user git at public.curoverse.com
Thu Apr 21 13:24:14 EDT 2016


Summary of changes:
 services/api/test/unit/blob_test.rb | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

       via  83332c0e546ad5e6332ce507224d9c6f64552ce6 (commit)
      from  2b152757ce494145c10971c36754c473d21dfcc7 (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 83332c0e546ad5e6332ce507224d9c6f64552ce6
Author: radhika <radhika at curoverse.com>
Date:   Thu Apr 21 13:23:32 2016 -0400

    8936: updated blob_test.rb to continue to use the default blob_signature_ttl.

diff --git a/services/api/test/unit/blob_test.rb b/services/api/test/unit/blob_test.rb
index 8692a73..938c57b 100644
--- a/services/api/test/unit/blob_test.rb
+++ b/services/api/test/unit/blob_test.rb
@@ -18,27 +18,20 @@ class BlobTest < ActiveSupport::TestCase
     '786u5rw2a9gx743dj3fgq2irk'
   @@known_signed_locator = 'acbd18db4cc2f85cedef654fccc4a4d8+3' +
     '+A89118b78732c33104a4d6231e8b5a5fa1e4301e3 at 7fffffff'
-  @@known_signature_ttl = 1209600
 
   test 'generate predictable invincible signature' do
-    original_ttl = Rails.configuration.blob_signature_ttl
-    Rails.configuration.blob_signature_ttl = @@known_signature_ttl
     signed = Blob.sign_locator @@known_locator, {
       api_token: @@known_token,
       key: @@known_key,
       expire: 0x7fffffff,
     }
     assert_equal @@known_signed_locator, signed
-    Rails.configuration.blob_signature_ttl = original_ttl
   end
 
   test 'verify predictable invincible signature' do
-    original_ttl = Rails.configuration.blob_signature_ttl
-    Rails.configuration.blob_signature_ttl = @@known_signature_ttl
     assert_equal true, Blob.verify_signature!(@@known_signed_locator,
                                               api_token: @@known_token,
                                               key: @@known_key)
-    Rails.configuration.blob_signature_ttl = original_ttl
   end
 
   test 'correct' do
@@ -134,7 +127,7 @@ class BlobTest < ActiveSupport::TestCase
     }
 
     original_ttl = Rails.configuration.blob_signature_ttl
-    Rails.configuration.blob_signature_ttl = @@known_signature_ttl*2
+    Rails.configuration.blob_signature_ttl = original_ttl*2
     signed2 = Blob.sign_locator @@known_locator, {
       api_token: @@known_token,
       key: @@known_key,

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list