Skip to content

Commit

Permalink
updated couple of tests (#77)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
netpicker and mailsanjayhere committed Jul 10, 2024
1 parent 120d0f4 commit d47b265
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@low(
name='rule_3_5_ensure_proxy_arp_is_disabled',
platform=['juniper'],
commands=dict(chk_cmd='')
commands=dict(chk_cmd='show configuration interfaces | match "proxy-arp" | count')
)
def rule_3_5_ensure_proxy_arp_is_disabled(commands, ref):
assert '' in commands.chk_cmd, ref
assert commands.chk_cmd.strip() == "0", ref
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@low(
name='rule_3_8_ensure_loopback_interface_address_is_set',
platform=['juniper'],
commands=dict(chk_cmd='')
commands=dict(chk_cmd='show configuration interfaces lo0')
)
def rule_3_8_ensure_loopback_interface_address_is_set(commands, ref):
assert '' in commands.chk_cmd, ref
assert 'address' in commands.chk_cmd, ref

0 comments on commit d47b265

Please sign in to comment.