diff options
author | Stanislaw Wozniak <swozniak@sponte.uk> | 2017-12-18 14:15:41 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-12-18 14:15:41 +0300 |
commit | 48cb9fa8104c3b001856ebc0521bb52e0a6d7739 (patch) | |
tree | e3aed831ae96996a5dc2d33f9dc61927e678a119 /spec | |
parent | b4ea25cafa0c7768a8618c673f9a1830f27fc950 (diff) |
Fixes 40842 - Adds extra cookies to JIRA service requests
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/project_services/jira_service_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/models/project_services/jira_service_spec.rb b/spec/models/project_services/jira_service_spec.rb index ad22fb2a386..c9b3c6cf602 100644 --- a/spec/models/project_services/jira_service_spec.rb +++ b/spec/models/project_services/jira_service_spec.rb @@ -395,6 +395,26 @@ describe JiraService do end end + describe 'additional cookies' do + let(:project) { create(:project) } + + context 'provides additional cookies to allow basic auth with oracle webgate' do + before do + @service = project.create_jira_service( + active: true, properties: { url: 'http://jira.com' }) + end + + after do + @service.destroy! + end + + it 'is initialized' do + expect(@service.options[:use_cookies]).to eq(true) + expect(@service.options[:additional_cookies]).to eq(["OBBasicAuth=fromDialog"]) + end + end + end + describe 'project and issue urls' do let(:project) { create(:project) } |