mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 16:48:42 +02:00
Tests: Force Synchro unit tests not to verify SSL certificate as most dev / test envs are self-signed
This commit is contained in:
@@ -99,7 +99,10 @@ class DataSynchroTest extends ItopDataTestCase
|
||||
|
||||
|
||||
$sUrl = \MetaModel::GetConfig()->Get('app_root_url').'/synchro/synchro_import.php?login_mode=form';
|
||||
$sResult = utils::DoPostRequest($sUrl, $aParams, null, $aResponseHeaders, []);
|
||||
$sResult = utils::DoPostRequest($sUrl, $aParams, null, $aResponseHeaders, [
|
||||
CURLOPT_SSL_VERIFYPEER => false,
|
||||
CURLOPT_SSL_VERIFYHOST => 0,
|
||||
]);
|
||||
// Read the status code from the last line
|
||||
$aLines = explode("\n", trim(strip_tags($sResult)));
|
||||
//$sLastLine = array_pop($aLines);
|
||||
|
||||
Reference in New Issue
Block a user