mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Introduce firewall component for opening/closing ports
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
4c4a59e5fe
commit
ca2c7dbeb0
48 files changed
+647
-401
No files matched your search
@@ -153,6 +153,15 @@ def test_follower_component_initialization():
|
||||
assert component.is_enabled()
|
||||
|
||||
|
||||
def test_follower_component_set_enabled():
|
||||
"""Test setting internal enabled state a follower component."""
|
||||
component = FollowerComponent('test-follower-1', False)
|
||||
component.set_enabled(True)
|
||||
assert component.is_enabled()
|
||||
component.set_enabled(False)
|
||||
assert not component.is_enabled()
|
||||
|
||||
|
||||
def test_follower_component_enable():
|
||||
"""Test enabling a follower component."""
|
||||
component = FollowerComponent('test-follower-1', False)
|
||||
|
||||
Reference in new issue
Block a user