mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +02:00
Merge remote-tracking branch 'origin/support/3.2' into develop
This commit is contained in:
@@ -511,7 +511,7 @@ EOF;
|
||||
{
|
||||
$bDbTlsEnabled = $oConfig->Get('db_tls.enabled');
|
||||
if (!$bDbTlsEnabled) {
|
||||
return CMDBSource::IsSslModeDBVersion() ? ' --skip-ssl' : '';
|
||||
return CMDBSource::IsSslModeDBVersion() ? ' --skip-ssl' : '';
|
||||
}
|
||||
$sTlsOptions = '';
|
||||
// Mysql 5.7.11 and upper deprecated --ssl and uses --ssl-mode instead
|
||||
|
||||
@@ -45,7 +45,11 @@ class DBBackupTest extends ItopTestCase
|
||||
$oConfigToTest->Set('db_tls.enabled', false);
|
||||
$sCliArgsNoTls = DBBackup::GetMysqlCliTlsOptions($oConfigToTest);
|
||||
|
||||
$this->assertEmpty($sCliArgsNoTls);
|
||||
if (CMDBSource::IsSslModeDBVersion()) {
|
||||
$this->assertEquals(' --skip-ssl', $sCliArgsNoTls);
|
||||
} else {
|
||||
$this->assertEmpty($sCliArgsNoTls);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user