Commit 7a8739d4 authored by Imre Farkas's avatar Imre Farkas

Merge branch 'fix-uninitialized-constant' into 'master'

Fix uninitialized constant testing integrations

See merge request gitlab-org/gitlab!36700
parents 3b6a1297 4a23f3bd
...@@ -61,7 +61,7 @@ class Projects::ServicesController < Projects::ApplicationController ...@@ -61,7 +61,7 @@ class Projects::ServicesController < Projects::ApplicationController
return { error: true, message: _('Validations failed.'), service_response: @service.errors.full_messages.join(','), test_failed: false } return { error: true, message: _('Validations failed.'), service_response: @service.errors.full_messages.join(','), test_failed: false }
end end
result = Integrations::Test::ProjectService.new(@service, current_user, params[:event]).execute result = ::Integrations::Test::ProjectService.new(@service, current_user, params[:event]).execute
unless result[:success] unless result[:success]
return { error: true, message: _('Test failed.'), service_response: result[:message].to_s, test_failed: true } return { error: true, message: _('Test failed.'), service_response: result[:message].to_s, test_failed: true }
......
---
title: Fix error message when saving an integration and testing the settings.
merge_request: 36700
author:
type: fixed
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