diff options
author | Douwe Maan <douwe@selenight.nl> | 2018-05-04 14:47:47 +0200 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2018-05-04 14:48:01 +0200 |
commit | 5d003f3d1dfcc5f743c6c1bcd17e84bf4646bf78 (patch) | |
tree | bdf568ac71985f71db7c2107688f304104d853e8 /spec/services | |
parent | 073c1a0e73ee515d1e87178a3f9d7905c11f6d31 (diff) | |
download | gitlab-ce-5d003f3d1dfcc5f743c6c1bcd17e84bf4646bf78.tar.gz |
Ensure web hook 'blocked URL' errors are stored in as web hook logs and properly surfaced to the user
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/web_hook_service_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/web_hook_service_spec.rb b/spec/services/web_hook_service_spec.rb index 2ef2e61babc..7995f2c9ae7 100644 --- a/spec/services/web_hook_service_spec.rb +++ b/spec/services/web_hook_service_spec.rb @@ -67,7 +67,7 @@ describe WebHookService do end it 'handles exceptions' do - exceptions = [SocketError, OpenSSL::SSL::SSLError, Errno::ECONNRESET, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Net::OpenTimeout, Net::ReadTimeout] + exceptions = [SocketError, OpenSSL::SSL::SSLError, Errno::ECONNRESET, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Net::OpenTimeout, Net::ReadTimeout, Gitlab::HTTP::BlockedUrlError] exceptions.each do |exception_class| exception = exception_class.new('Exception message') |