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:
authorRobert Speicher <robert@gitlab.com>2018-05-04 18:34:14 +0300
committerRobert Speicher <robert@gitlab.com>2018-05-04 18:34:14 +0300
commitf8475d9091a8219cec897df542a943835a3b6cca (patch)
tree8eab09b48373e6c3aec1e43e5364a0805de3e864 /spec/services
parent7603beffc916d06039cac63b223d8e6234b5d666 (diff)
parentcf76c8575beae985951e12066037db6c34941d19 (diff)
Merge branch 'dm-webhook-catch-blocked-url-exception' into 'master'
Ensure web hook 'blocked URL' errors are stored in as web hook logs and properly surfaced to the user See merge request gitlab-org/gitlab-ce!18746
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/web_hook_service_spec.rb2
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')