Ejemplo n.º 1
0
 def test_valid_deleted_file_home(self):
     """
     Test /home/
     """
     self.assertFalse(restartcheck._valid_deleted_file("/home/test"))
     self.assertFalse(restartcheck._valid_deleted_file("/home/test (deleted)"))
     self.assertFalse(restartcheck._valid_deleted_file("/home/test (path inode=1)"))
Ejemplo n.º 2
0
 def test_valid_deleted_file_sysv(self):
     """
     Test /SYSV/
     """
     self.assertFalse(restartcheck._valid_deleted_file("/SYSV/test"))
     self.assertFalse(restartcheck._valid_deleted_file("/SYSV/test (deleted)"))
     self.assertFalse(restartcheck._valid_deleted_file("/SYSV/test (path inode=1)"))
Ejemplo n.º 3
0
 def test_valid_deleted_file_sysv(self):
     '''
     Test /SYSV/
     '''
     self.assertFalse(restartcheck._valid_deleted_file('/SYSV/test'))
     self.assertFalse(restartcheck._valid_deleted_file('/SYSV/test (deleted)'))
     self.assertFalse(restartcheck._valid_deleted_file('/SYSV/test (path inode=1)'))
Ejemplo n.º 4
0
 def test_valid_deleted_file_var_local_run(self):
     '''
     Test /var/local/run/
     '''
     self.assertFalse(restartcheck._valid_deleted_file('/var/local/run/test'))
     self.assertFalse(restartcheck._valid_deleted_file('/var/local/run/test (deleted)'))
     self.assertFalse(restartcheck._valid_deleted_file('/var/local/run/test (path inode=1)'))
Ejemplo n.º 5
0
 def test_valid_deleted_file_var_lib_nagios3_spool_checkresults(self):
     '''
     Test /var/lib/nagios3/spool/checkresults/
     '''
     self.assertFalse(restartcheck._valid_deleted_file('/var/lib/nagios3/spool/checkresults/test'))
     self.assertFalse(restartcheck._valid_deleted_file('/var/lib/nagios3/spool/checkresults/test (deleted)'))
     self.assertFalse(restartcheck._valid_deleted_file('/var/lib/nagios3/spool/checkresults/test (path inode=1)'))
Ejemplo n.º 6
0
 def test_valid_deleted_file_var_lib_vdr(self):
     '''
     Test /var/lib/vdr/
     '''
     self.assertFalse(restartcheck._valid_deleted_file('/var/lib/vdr/test'))
     self.assertFalse(restartcheck._valid_deleted_file('/var/lib/vdr/test (deleted)'))
     self.assertFalse(restartcheck._valid_deleted_file('/var/lib/vdr/test (path inode=1)'))
Ejemplo n.º 7
0
 def test_valid_deleted_file_var_cache_fontconfig(self):
     '''
     Test /var/cache/fontconfig/
     '''
     self.assertFalse(restartcheck._valid_deleted_file('/var/cache/fontconfig/test'))
     self.assertFalse(restartcheck._valid_deleted_file('/var/cache/fontconfig/test (deleted)'))
     self.assertFalse(restartcheck._valid_deleted_file('/var/cache/fontconfig/test (path inode=1)'))
Ejemplo n.º 8
0
 def test_valid_deleted_file_icon_theme_cache(self):
     '''
     Test /test.icon-theme.cache
     '''
     self.assertFalse(restartcheck._valid_deleted_file('/dev/test.icon-theme.cache'))
     self.assertFalse(restartcheck._valid_deleted_file('/dev/test.icon-theme.cache (deleted)'))
     self.assertFalse(restartcheck._valid_deleted_file('/dev/test.icon-theme.cache (path inode=1)'))
Ejemplo n.º 9
0
 def test_valid_deleted_file_home(self):
     '''
     Test /home/
     '''
     self.assertFalse(restartcheck._valid_deleted_file('/home/test'))
     self.assertFalse(restartcheck._valid_deleted_file('/home/test (deleted)'))
     self.assertFalse(restartcheck._valid_deleted_file('/home/test (path inode=1)'))
Ejemplo n.º 10
0
 def test_valid_deleted_file_usr_lib_locale(self):
     '''
     Test /usr/lib/locale/
     '''
     self.assertFalse(restartcheck._valid_deleted_file('/usr/lib/locale/test'))
     self.assertFalse(restartcheck._valid_deleted_file('/usr/lib/locale/test (deleted)'))
     self.assertFalse(restartcheck._valid_deleted_file('/usr/lib/locale/test (path inode=1)'))
Ejemplo n.º 11
0
 def test_valid_deleted_file_dev_pts(self):
     '''
     Test /dev/pts/
     '''
     self.assertFalse(restartcheck._valid_deleted_file('/dev/pts/test'))
     self.assertFalse(restartcheck._valid_deleted_file('/dev/pts/test (deleted)'))
     self.assertFalse(restartcheck._valid_deleted_file('/dev/pts/test (path inode=1)'))
Ejemplo n.º 12
0
 def test_valid_deleted_file_var_run(self):
     """
     Test /var/run/
     """
     self.assertFalse(restartcheck._valid_deleted_file("/var/run/test"))
     self.assertFalse(
         restartcheck._valid_deleted_file("/var/run/test (deleted)"))
     self.assertFalse(
         restartcheck._valid_deleted_file("/var/run/test (path inode=1)"))
Ejemplo n.º 13
0
 def test_valid_deleted_file_dev_pts(self):
     """
     Test /dev/pts/
     """
     self.assertFalse(restartcheck._valid_deleted_file("/dev/pts/test"))
     self.assertFalse(
         restartcheck._valid_deleted_file("/dev/pts/test (deleted)"))
     self.assertFalse(
         restartcheck._valid_deleted_file("/dev/pts/test (path inode=1)"))
Ejemplo n.º 14
0
 def test_valid_deleted_file_var_lib_vdr(self):
     """
     Test /var/lib/vdr/
     """
     self.assertFalse(restartcheck._valid_deleted_file("/var/lib/vdr/test"))
     self.assertFalse(
         restartcheck._valid_deleted_file("/var/lib/vdr/test (deleted)"))
     self.assertFalse(
         restartcheck._valid_deleted_file(
             "/var/lib/vdr/test (path inode=1)"))
Ejemplo n.º 15
0
 def test_valid_deleted_file_var_local_log(self):
     """
     Test /var/local/log/
     """
     self.assertFalse(
         restartcheck._valid_deleted_file("/var/local/log/test"))
     self.assertFalse(
         restartcheck._valid_deleted_file("/var/local/log/test (deleted)"))
     self.assertFalse(
         restartcheck._valid_deleted_file(
             "/var/local/log/test (path inode=1)"))
Ejemplo n.º 16
0
 def test_valid_deleted_file_usr_lib_locale(self):
     """
     Test /usr/lib/locale/
     """
     self.assertFalse(
         restartcheck._valid_deleted_file("/usr/lib/locale/test"))
     self.assertFalse(
         restartcheck._valid_deleted_file("/usr/lib/locale/test (deleted)"))
     self.assertFalse(
         restartcheck._valid_deleted_file(
             "/usr/lib/locale/test (path inode=1)"))
Ejemplo n.º 17
0
 def test_valid_deleted_file_var_lib_nagios3_spool(self):
     """
     Test /var/lib/nagios3/spool/
     """
     self.assertFalse(
         restartcheck._valid_deleted_file("/var/lib/nagios3/spool/test"))
     self.assertFalse(
         restartcheck._valid_deleted_file(
             "/var/lib/nagios3/spool/test (deleted)"))
     self.assertFalse(
         restartcheck._valid_deleted_file(
             "/var/lib/nagios3/spool/test (path inode=1)"))
Ejemplo n.º 18
0
 def test_valid_deleted_file_var_cache_fontconfig(self):
     """
     Test /var/cache/fontconfig/
     """
     self.assertFalse(
         restartcheck._valid_deleted_file("/var/cache/fontconfig/test"))
     self.assertFalse(
         restartcheck._valid_deleted_file(
             "/var/cache/fontconfig/test (deleted)"))
     self.assertFalse(
         restartcheck._valid_deleted_file(
             "/var/cache/fontconfig/test (path inode=1)"))
Ejemplo n.º 19
0
 def test_valid_deleted_file_icon_theme_cache(self):
     """
     Test /test.icon-theme.cache
     """
     self.assertFalse(
         restartcheck._valid_deleted_file("/dev/test.icon-theme.cache"))
     self.assertFalse(
         restartcheck._valid_deleted_file(
             "/dev/test.icon-theme.cache (deleted)"))
     self.assertFalse(
         restartcheck._valid_deleted_file(
             "/dev/test.icon-theme.cache (path inode=1)"))
Ejemplo n.º 20
0
 def test_valid_deleted_file_psth_inode(self):
     """
     Test (path inode=1) file
     """
     self.assertTrue(
         restartcheck._valid_deleted_file("/usr/lib/test (path inode=1)")
     )
Ejemplo n.º 21
0
 def test_valid_deleted_file_aio(self):
     '''
     Test /[aio]/
     '''
     self.assertFalse(restartcheck._valid_deleted_file('/opt/test'))
     self.assertFalse(
         restartcheck._valid_deleted_file('/opt/test (deleted)'))
     self.assertFalse(
         restartcheck._valid_deleted_file('/opt/test (path inode=1)'))
     self.assertFalse(restartcheck._valid_deleted_file('/apt/test'))
     self.assertFalse(
         restartcheck._valid_deleted_file('/apt/test (deleted)'))
     self.assertFalse(
         restartcheck._valid_deleted_file('/apt/test (path inode=1)'))
     self.assertFalse(restartcheck._valid_deleted_file('/ipt/test'))
     self.assertFalse(
         restartcheck._valid_deleted_file('/ipt/test (deleted)'))
     self.assertFalse(
         restartcheck._valid_deleted_file('/ipt/test (path inode=1)'))
     self.assertFalse(restartcheck._valid_deleted_file('/aio/test'))
     self.assertFalse(
         restartcheck._valid_deleted_file('/aio/test (deleted)'))
     self.assertFalse(
         restartcheck._valid_deleted_file('/aio/test (path inode=1)'))
Ejemplo n.º 22
0
 def test_valid_deleted_file_deleted(self):
     """
     Test (deleted) file
     """
     self.assertTrue(
         restartcheck._valid_deleted_file("/usr/lib/test (deleted)"))
Ejemplo n.º 23
0
 def test_valid_deleted_file_aio(self):
     """
     Test /[aio]/
     """
     self.assertFalse(restartcheck._valid_deleted_file("/opt/test"))
     self.assertFalse(
         restartcheck._valid_deleted_file("/opt/test (deleted)"))
     self.assertFalse(
         restartcheck._valid_deleted_file("/opt/test (path inode=1)"))
     self.assertFalse(restartcheck._valid_deleted_file("/apt/test"))
     self.assertFalse(
         restartcheck._valid_deleted_file("/apt/test (deleted)"))
     self.assertFalse(
         restartcheck._valid_deleted_file("/apt/test (path inode=1)"))
     self.assertFalse(restartcheck._valid_deleted_file("/ipt/test"))
     self.assertFalse(
         restartcheck._valid_deleted_file("/ipt/test (deleted)"))
     self.assertFalse(
         restartcheck._valid_deleted_file("/ipt/test (path inode=1)"))
     self.assertFalse(restartcheck._valid_deleted_file("/aio/test"))
     self.assertFalse(
         restartcheck._valid_deleted_file("/aio/test (deleted)"))
     self.assertFalse(
         restartcheck._valid_deleted_file("/aio/test (path inode=1)"))
Ejemplo n.º 24
0
 def test_valid_deleted_file_psth_inode(self):
     '''
     Test (path inode=1) file
     '''
     self.assertTrue(
         restartcheck._valid_deleted_file('/usr/lib/test (path inode=1)'))
Ejemplo n.º 25
0
 def test_valid_deleted_file_deleted(self):
     '''
     Test (deleted) file
     '''
     self.assertTrue(
         restartcheck._valid_deleted_file('/usr/lib/test (deleted)'))