diff --git a/tests/php-unit-tests/unitary-tests/application/LoginTest.php b/tests/php-unit-tests/unitary-tests/application/LoginTest.php index 52b4b70c9..583d30d3d 100644 --- a/tests/php-unit-tests/unitary-tests/application/LoginTest.php +++ b/tests/php-unit-tests/unitary-tests/application/LoginTest.php @@ -26,7 +26,7 @@ class LoginTest extends ItopDataTestCase { @chmod($this->sConfigPath, 0770); $oConfig->WriteToFile(); - @chmod($this->sConfigPath, 0440); + @chmod($this->sConfigPath, 0444); } protected function tearDown(): void { @@ -34,7 +34,7 @@ class LoginTest extends ItopDataTestCase { //put config back @chmod($this->sConfigPath, 0770); file_put_contents($this->sConfigPath, file_get_contents($this->sConfigTmpBackupFile)); - @chmod($this->sConfigPath, 0440); + @chmod($this->sConfigPath, 0444); @unlink($this->sConfigTmpBackupFile); } parent::tearDown(); diff --git a/tests/php-unit-tests/unitary-tests/core/iTopConfigParserTest.php b/tests/php-unit-tests/unitary-tests/core/iTopConfigParserTest.php index e096c9981..741ae52d6 100644 --- a/tests/php-unit-tests/unitary-tests/core/iTopConfigParserTest.php +++ b/tests/php-unit-tests/unitary-tests/core/iTopConfigParserTest.php @@ -47,7 +47,7 @@ class iTopConfigParserTest extends ItopTestCase @chmod($this->sConfigPath, 0770); $bRenameResult = rename($this->tmpSavePath, $this->sConfigPath); echo "Restored config file, result={$bRenameResult}"; - @chmod($this->sConfigPath, 0440); + @chmod($this->sConfigPath, 0444); } } diff --git a/tests/php-unit-tests/unitary-tests/webservices/CliResetSessionTest.php b/tests/php-unit-tests/unitary-tests/webservices/CliResetSessionTest.php index 612125035..5e798d3f2 100644 --- a/tests/php-unit-tests/unitary-tests/webservices/CliResetSessionTest.php +++ b/tests/php-unit-tests/unitary-tests/webservices/CliResetSessionTest.php @@ -55,7 +55,7 @@ class CliResetSessionTest extends ItopDataTestCase @chmod($sConfigPath, 0770); $oConfig = new Config($this->sConfigTmpBackupFile); $oConfig->WriteToFile($sConfigPath); - @chmod($sConfigPath, 0440); + @chmod($sConfigPath, 0444); unlink($this->sConfigTmpBackupFile); } @@ -72,14 +72,14 @@ class CliResetSessionTest extends ItopDataTestCase MetaModel::GetConfig()->SetAllowedLoginTypes($aAllowedLoginTypes); MetaModel::GetConfig()->WriteToFile(); } - @chmod(MetaModel::GetConfig()->GetLoadedFile(), 0440); + @chmod(MetaModel::GetConfig()->GetLoadedFile(), 0444); } protected function SetLoginModes($aAllowedLoginTypes){ @chmod(MetaModel::GetConfig()->GetLoadedFile(), 0770); MetaModel::GetConfig()->SetAllowedLoginTypes($aAllowedLoginTypes); MetaModel::GetConfig()->WriteToFile(); - @chmod(MetaModel::GetConfig()->GetLoadedFile(), 0440); + @chmod(MetaModel::GetConfig()->GetLoadedFile(), 0444); } public function RestProvider(){