diff options
author | Steve Azzopardi <steveazz@outlook.com> | 2018-07-24 14:05:48 +0200 |
---|---|---|
committer | Steve Azzopardi <steveazz@outlook.com> | 2018-07-30 16:58:59 +0200 |
commit | 18a1bcf862e03e1f7f52efb8169521d315d263c5 (patch) | |
tree | 70cff92edd1c804c5992d26125b4924d1ff2cda8 /spec/models | |
parent | c90d7633da7837deedd67f344ac8d00ba54c4989 (diff) | |
download | gitlab-ce-18a1bcf862e03e1f7f52efb8169521d315d263c5.tar.gz |
Fix authorization for web terminals
Workhorse was not able to parse the `headers` property since it was expecting a
key => array as a structure.
Error from workhorse: preAuthorizeHandler: decode authorization response: json:
cannot unmarshal string into Go struct field TerminalSettings.Header of type
[]string
Workhorse was not changed since this api is already used for the environment
terminals.
gitlab-org/gitlab-ce#25990
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/ci/build_runner_session_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/ci/build_runner_session_spec.rb b/spec/models/ci/build_runner_session_spec.rb index 7183957aa50..35622366829 100644 --- a/spec/models/ci/build_runner_session_spec.rb +++ b/spec/models/ci/build_runner_session_spec.rb @@ -29,7 +29,7 @@ describe Ci::BuildRunnerSession, model: true do it 'adds Authorization header if authorization is present' do subject.authorization = 'whatever' - expect(terminal_specification[:headers]).to include(Authorization: 'whatever') + expect(terminal_specification[:headers]).to include(Authorization: ['whatever']) end end end |