Skip to content

Commit

Permalink
Remove allow_ssh function
Browse files Browse the repository at this point in the history
  • Loading branch information
badrogger committed Nov 20, 2024
1 parent 28016b9 commit 0006b95
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/core/iptables_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import mock

from node_cli.core.iptables import allow_ssh
from node_cli.utils.helper import get_ssh_port


Expand All @@ -11,9 +10,3 @@ def test_get_ssh_port():
assert get_ssh_port('http') == 80
with mock.patch.object(socket, 'getservbyname', side_effect=OSError):
assert get_ssh_port() == 22


def test_allow_ssh():
chain = mock.Mock()
chain.rules = []
allow_ssh(chain)

0 comments on commit 0006b95

Please sign in to comment.