6 lines
315 B
Ruby
6 lines
315 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.shared_context 'workhorse headers' do
|
|
let(:workhorse_token) { JWT.encode({ 'iss' => 'gitlab-workhorse' }, Gitlab::Workhorse.secret, 'HS256') }
|
|
let(:workhorse_headers) { { 'GitLab-Workhorse' => '1.0', Gitlab::Workhorse::INTERNAL_API_REQUEST_HEADER => workhorse_token } }
|
|
end
|