N°3251 - Restore 2.7 behaviour of ExecITopScript (hide passwords from commandline arguments) and allow tests to provide credentials

This commit is contained in:
Eric
2021-03-31 16:36:40 +02:00
parent 7a95ea407b
commit 131ecd5e3b
2 changed files with 26 additions and 40 deletions

View File

@@ -60,11 +60,8 @@ class DataSynchroTest extends ItopDataTestCase
protected function ExecSynchroImport($aParams, $bSynchroByHttp)
{
$aParams['auth_user'] = static::AUTH_USER;
$aParams['auth_pwd'] = static::AUTH_PWD;
if (!$bSynchroByHttp) {
return utils::ExecITopScript('synchro/synchro_import.php', $aParams);
return utils::ExecITopScript('synchro/synchro_import.php', $aParams, static::AUTH_USER, static::AUTH_PWD);
}
//$aParams['output'] = 'details';