We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba4fcde commit 71c883aCopy full SHA for 71c883a
tests/test_nginx_config_reloader.py
@@ -654,13 +654,8 @@ def test_no_permission_to_main_config_dir(self):
654
655
tm = self._get_nginx_config_reloader_instance()
656
try:
657
- with self.assertLogs('root', level='ERROR') as cm:
658
- result = tm.apply_new_config()
659
- self.assertFalse(result)
660
- self.assertTrue(
661
- any("No write permissions to main nginx config directory" in message for message in cm.output),
662
- "Expected error message not found in logs."
663
- )
+ result = tm.check_can_write_to_main_config_dir()
+ self.assertFalse(result)
664
finally:
665
# Restore permissions after test
666
os.chmod(self.main, 0o700)
0 commit comments