X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/01f52958d899c62b0b1f9a39fda960136835850c..1965e1793598c76ceef4decd4a5a6c7755c385e3:/services/api/test/test_helper.rb?ds=sidebyside diff --git a/services/api/test/test_helper.rb b/services/api/test/test_helper.rb index 639b53bfa7..c834250cb6 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?