Commit 47c21c82 authored by Dmitriy Zaporozhets (DZ)'s avatar Dmitriy Zaporozhets (DZ)

Merge branch '336486-allow-instance-and-group-integrations-to-set-deployment_type' into 'master'

Allow all Jira integrations to set deployment_type

See merge request gitlab-org/gitlab!66807
parents e8592743 5a5eb5d9
...@@ -539,8 +539,7 @@ module Integrations ...@@ -539,8 +539,7 @@ module Integrations
end end
def update_deployment_type? def update_deployment_type?
(api_url_changed? || url_changed? || username_changed? || password_changed?) && api_url_changed? || url_changed? || username_changed? || password_changed?
testable?
end end
def update_deployment_type def update_deployment_type
......
...@@ -334,16 +334,6 @@ RSpec.describe Integrations::Jira do ...@@ -334,16 +334,6 @@ RSpec.describe Integrations::Jira do
end end
end end
context 'when not allowed to test an instance or group' do
it 'does not update deployment type' do
allow(integration).to receive(:testable?).and_return(false)
integration.update!(url: 'http://first.url')
expect(WebMock).not_to have_requested(:get, /serverInfo/)
end
end
context 'stored password invalidation' do context 'stored password invalidation' do
context 'when a password was previously set' do context 'when a password was previously set' do
context 'when only web url present' do context 'when only web url present' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment