UM replicated

This commit is contained in:
fbsanchez 2021-10-27 22:28:37 +02:00
parent 0ec2bf30ce
commit 77bee9f3ca
2 changed files with 8 additions and 2 deletions

View File

@ -1276,6 +1276,7 @@ class Client
$file = trim(str_replace("\0", '', $this->productPath.'/'.$file));
if (file_exists($file) === true
&& is_file($delete_files_txt) === true
&& is_dir($file) === false
) {
unlink($file);
$processed[$file] = 'removed';

View File

@ -183,7 +183,7 @@ class ClientTest extends \PHPUnit\Framework\TestCase
try {
$this->conf = new \Config('client/conf/test.ini');
} catch (\Exception $e) {
$this->fail($e->xdebug_message);
$this->fail($e->getMessage());
}
// Verify endpoint has all needed stuff, like licenses and OUM packages.
@ -510,7 +510,12 @@ class ClientTest extends \PHPUnit\Framework\TestCase
$this->assertEquals(0, $umc_enterprise->getMR());
$umc_enterprise->updateLastVersion();
try {
$umc_enterprise->updateLastVersion();
} catch (\Exception $e) {
echo $e->getTraceAsString();
$this->fail('Failed while updating: '.$e->getMessage());
}
$this->assertEquals(
4,