diff options
author | Nick Thomas <nick@gitlab.com> | 2018-02-06 15:56:48 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-02-06 15:56:48 +0000 |
commit | 805799b71b059b1bfb3578c4e78db3030ec04b6a (patch) | |
tree | 5a2ecddaf2283ea6409218c4920ae23134021dd7 /spec/lib | |
parent | 9ab4c5b735e0e121996b092cb20bcdc423045c5e (diff) | |
parent | 11f882ca437337ebd04331b9e96217f1d48be93e (diff) | |
download | gitlab-ce-805799b71b059b1bfb3578c4e78db3030ec04b6a.tar.gz |
Merge branch 'bump-workhorse' into 'master'
Upgrade GitLab Workhorse to v3.6.0
See merge request gitlab-org/gitlab-ce!16946
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/workhorse_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/lib/gitlab/workhorse_spec.rb b/spec/lib/gitlab/workhorse_spec.rb index 2e7a0265a0b..dc2bb5b9747 100644 --- a/spec/lib/gitlab/workhorse_spec.rb +++ b/spec/lib/gitlab/workhorse_spec.rb @@ -465,4 +465,21 @@ describe Gitlab::Workhorse do end end end + + describe '.send_url' do + let(:url) { 'http://example.com' } + + subject { described_class.send_url(url) } + + it 'sets the header correctly' do + key, command, params = decode_workhorse_header(subject) + + expect(key).to eq("Gitlab-Workhorse-Send-Data") + expect(command).to eq("send-url") + expect(params).to eq({ + 'URL' => url, + 'AllowRedirects' => false + }.deep_stringify_keys) + end + end end |