From ad41b2d198749273cf3793add4ac67843c55e18a Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 7 Jan 2014 11:12:59 +1100 Subject: [PATCH] TST: correct name. Still dont know why it isnt called --- fail2ban/tests/clientreadertestcase.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/fail2ban/tests/clientreadertestcase.py b/fail2ban/tests/clientreadertestcase.py index 29cb50f1..fd820fd8 100644 --- a/fail2ban/tests/clientreadertestcase.py +++ b/fail2ban/tests/clientreadertestcase.py @@ -472,18 +472,7 @@ class JailsReaderTest(LogCaptureTestCase): self.assertTrue(actionReader._opts.get('actionban', '').strip()) # Verify that all filters found under config/ have a jail - def get_all_confs(d): - from glob import glob - return set( - os.path.basename(x.replace('.conf', '')) - for x in glob(os.path.join(CONFIG_DIR, d, '*.conf'))) - - # TODO: provide jails for some additional filters - # ['gssftpd', 'qmail', 'apache-nohome', 'exim', 'dropbear', 'webmin-auth', 'cyrus-imap', 'sieve'] - # self.assertEqual(get_all_confs('filter.d').difference(allFilters), - # set(['common'])) - - def testReadSockJailConfComplete(self): + def testReadStockJailFilterComplete(self): jails = JailsReader(basedir=CONFIG_DIR, force_enable=True) self.assertTrue(jails.read()) # opens fine self.assertTrue(jails.getOptions()) # reads fine