Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Azzopardi <steveazz@outlook.com>2018-07-24 15:05:48 +0300
committerSteve Azzopardi <steveazz@outlook.com>2018-07-30 17:58:59 +0300
commit18a1bcf862e03e1f7f52efb8169521d315d263c5 (patch)
tree70cff92edd1c804c5992d26125b4924d1ff2cda8 /spec/models
parentc90d7633da7837deedd67f344ac8d00ba54c4989 (diff)
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.rb2
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