Esempio n. 1
0
 def test_103_action_return(self):
     """Check action GOTO"""
     action = {"type": "RETURN"}
     str = nftables_util.action_expression(action, "inet")
     print(str)
     assert (str == 'return')
Esempio n. 2
0
 def test_102_action_jump(self):
     """Check action JUMP"""
     action = {"type": "JUMP", "chain": "target"}
     str = nftables_util.action_expression(action, "inet")
     print(str)
     assert (str == 'jump target')
Esempio n. 3
0
 def test_103_action_goto(self):
     """Check action GOTO"""
     action = {"type": "GOTO", "chain": "target"}
     str = nftables_util.action_expression(action, "inet")
     print(str)
     assert (str == 'goto target')
Esempio n. 4
0
 def test_100_action_reject(self):
     """Check action REJECT"""
     action = {"type": "REJECT"}
     str = nftables_util.action_expression(action, "inet")
     print(str)
     assert (str == 'reject')
Esempio n. 5
0
 def test_101_action_accept(self):
     """Check action ACCEPT"""
     action = {"type": "ACCEPT"}
     str = nftables_util.action_expression(action, "inet")
     print(str)
     assert (str == 'accept')
Esempio n. 6
0
 def test_103_action_return(self):
     """Check action GOTO"""
     action = {"type": "RETURN"}
     str = nftables_util.action_expression(action, "inet")
     print(str)
     assert(str == 'return')
Esempio n. 7
0
 def test_103_action_goto(self):
     """Check action GOTO"""
     action = {"type": "GOTO", "chain":"target"}
     str = nftables_util.action_expression(action, "inet")
     print(str)
     assert(str == 'goto target')
Esempio n. 8
0
 def test_102_action_jump(self):
     """Check action JUMP"""
     action = {"type": "JUMP", "chain":"target"}
     str = nftables_util.action_expression(action, "inet")
     print(str)
     assert(str == 'jump target')
Esempio n. 9
0
 def test_101_action_accept(self):
     """Check action ACCEPT"""
     action = {"type": "ACCEPT"}
     str = nftables_util.action_expression(action, "inet")
     print(str)
     assert(str == 'accept')
Esempio n. 10
0
 def test_100_action_reject(self):
     """Check action REJECT"""
     action = {"type": "REJECT"}
     str = nftables_util.action_expression(action, "inet")
     print(str)
     assert(str == 'reject')