X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/01f52958d899c62b0b1f9a39fda960136835850c..dbfe1d83ff4e77edc77a562022a999e9ba9e2e2b:/services/api/test/test_helper.rb diff --git a/services/api/test/test_helper.rb b/services/api/test/test_helper.rb index 639b53bfa7..6dbaa7550f 100644 --- a/services/api/test/test_helper.rb +++ b/services/api/test/test_helper.rb @@ -127,12 +127,12 @@ class ActiveSupport::TestCase "HTTP_AUTHORIZATION" => "OAuth2 #{t}") end - def salt_token(fixture:, remote_id:) + def salt_token(fixture:, remote:) auth = api_client_authorizations(fixture) uuid = auth.uuid token = auth.api_token - hmac = OpenSSL::HMAC.hexdigest('sha1', token, remote_id) - return "v2,#{uuid},#{hmac}" + hmac = OpenSSL::HMAC.hexdigest('sha1', token, remote) + return "v2/#{uuid}/#{hmac}" end def self.skip_slow_tests? @@ -143,7 +143,7 @@ class ActiveSupport::TestCase end def self.slow_test(name, &block) - define_method(name, block) unless skip_slow_tests? + test(name, &block) unless skip_slow_tests? end end