Skip to content

Commit f3996f0

Browse files
netpickermailsanjayhere
authored andcommitted
updated couple of tests (#77)
* updated rule_1_1 test * fixing flake8 reported errors * fixing flake8 errors for all vendors * fixed some more flake8 * added couple of tests --------- Co-authored-by: mailsanjayhere <mailsanjayhere@gmail.com>
1 parent 0888ad9 commit f3996f0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CIS/Junos/3_interfaces/rule_3_5_ensure_proxy_arp_is_disabled.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@low(
55
name='rule_3_5_ensure_proxy_arp_is_disabled',
66
platform=['juniper'],
7-
commands=dict(chk_cmd='')
7+
commands=dict(chk_cmd='show configuration interfaces | match "proxy-arp" | count')
88
)
99
def rule_3_5_ensure_proxy_arp_is_disabled(commands, ref):
10-
assert '' in commands.chk_cmd, ref
10+
assert commands.chk_cmd.strip() == "0", ref

CIS/Junos/3_interfaces/rule_3_8_ensure_loopback_interface_address_is_set.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@low(
55
name='rule_3_8_ensure_loopback_interface_address_is_set',
66
platform=['juniper'],
7-
commands=dict(chk_cmd='')
7+
commands=dict(chk_cmd='show configuration interfaces lo0')
88
)
99
def rule_3_8_ensure_loopback_interface_address_is_set(commands, ref):
10-
assert '' in commands.chk_cmd, ref
10+
assert 'address' in commands.chk_cmd, ref

0 commit comments

Comments
 (0)