diff --git a/features/TestProxyConfiguration.feature b/features/TestProxyConfiguration.feature index 58fd21383d3..6cdcd442fe4 100644 --- a/features/TestProxyConfiguration.feature +++ b/features/TestProxyConfiguration.feature @@ -3,12 +3,14 @@ Feature: Testing A Configuration Proxy I want to test my proxy configuration So that to verify it - Scenario: Proxy settings with a correct connexion + @critical + Scenario: Proxy settings with a correct connection Given I am logged in a Centreon server with a configured proxy When I test the proxy configuration in the interface Then a popin displays a successful connexion - Scenario: Proxy settings with a wrong connexion + @critical + Scenario: Proxy settings with a wrong connection Given I am logged in a Centreon server with a wrongly configured proxy When I test the proxy configuration in the interface Then a popin displays an error message diff --git a/www/api/class/centreon_proxy.class.php b/www/api/class/centreon_proxy.class.php index ad88beba3f1..a2a5ffef4ae 100644 --- a/www/api/class/centreon_proxy.class.php +++ b/www/api/class/centreon_proxy.class.php @@ -10,7 +10,7 @@ public function postCheckConfiguration() $proxyAddress = $this->arguments['url']; $proxyPort = $this->arguments['port']; try { - $testUrl = 'http://ci.int.centreon.com:3000/api/pluginpack/pluginpack'; + $testUrl = 'https://api.imp.centreon.com/api/pluginpack/pluginpack'; $restHttpLib = new \CentreonRestHttp(); $restHttpLib->setProxy($proxyAddress, $proxyPort); $restHttpLib->call($testUrl); @@ -18,7 +18,7 @@ public function postCheckConfiguration() $message = _('Connection Successful'); } catch (\Exception $e) { $outcome = false; - $message = $e->getMessage(); + $message = _('Could not establish connection to Centreon IMP servers (') . $e->getMessage() . ')'; } return array(