mirror of https://github.com/fail2ban/fail2ban
TST: basic test for reading of a bogus jail
parent
b92316ff17
commit
149a83545f
|
@ -126,6 +126,13 @@ class JailsReaderTest(unittest.TestCase):
|
||||||
# commands to communicate to the server
|
# commands to communicate to the server
|
||||||
self.assertEqual(comm_commands, [])
|
self.assertEqual(comm_commands, [])
|
||||||
|
|
||||||
|
# We should not "read" some bogus jail
|
||||||
|
old_comm_commands = comm_commands[:] # make a copy
|
||||||
|
self.assertFalse(jails.getOptions("BOGUS"))
|
||||||
|
# and there should be no side-effects
|
||||||
|
self.assertEqual(jails.convert(), old_comm_commands)
|
||||||
|
|
||||||
|
|
||||||
def testReadStockJailConfForceEnabled(self):
|
def testReadStockJailConfForceEnabled(self):
|
||||||
# more of a smoke test to make sure that no obvious surprises
|
# more of a smoke test to make sure that no obvious surprises
|
||||||
# on users' systems when enabling shipped jails
|
# on users' systems when enabling shipped jails
|
||||||
|
|
Loading…
Reference in New Issue