@@ -659,7 +659,7 @@ def test_32_ensure_nftables_framework(self):
659659
660660 def test_add_safety (self ):
661661 ''' Test add_safety_block function '''
662- self .library .client_ip = '12345 '
662+ self .library .client_ip = '10.20.30.40 '
663663
664664 # Assume an add works:
665665 with mock .patch .object (self .library .nft , 'json_cmd' ) as mock_nft , \
@@ -672,7 +672,7 @@ def test_add_safety(self):
672672 'chain' : 'FORWARD' ,
673673 'expr' : [{'match' : {'op' : '==' ,
674674 'left' : {'payload' : {'protocol' : 'ip' , 'field' : 'saddr' }},
675- 'right' : '12345 ' }},
675+ 'right' : '10.20.30.40 ' }},
676676 {'drop' : None }]}}}]})
677677 self .assertTrue (res , 'add_safety_block shoule be true on success' )
678678
@@ -687,7 +687,7 @@ def test_add_safety(self):
687687
688688 def test_del_safety (self ):
689689 ''' Test add_safety_block function '''
690- self .library .client_ip = '23456 '
690+ self .library .client_ip = '20.30.40.50 '
691691
692692 good_rule_to_delete = {
693693 'family' : 'inet' ,
@@ -731,7 +731,7 @@ def test_del_safety(self):
731731 # 'chain': 'FORWARD',
732732 # 'expr': [{'match': {'op': '==',
733733 # 'left': {'payload': {'protocol': 'ip', 'field': 'saddr'}},
734- # 'right': '23456 '}},
734+ # 'right': '20.30.40.50 '}},
735735 # {'drop': None}]}}}]})
736736
737737 # Assume a delete finds no rule to delete:
0 commit comments