Skip to content

Commit a97416c

Browse files
netpickermailsanjayhere
authored and
imi
committed
Juniper (#80)
* updated rule_1_1 test * fixing flake8 reported errors * fixing flake8 errors for all vendors * fixed some more flake8 * added couple of tests * updating platform name juniper to juniper_junos * added 6_1_1 test * adding 6_1_2 * 611, 612.. not updated so.. --------- Co-authored-by: mailsanjayhere <mailsanjayhere@gmail.com>
1 parent df078c1 commit a97416c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CIS/Junos/6_system/6_1_accounting/rule_6_1_1_ensure_accounting_destination_is_configured.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@medium(
55
name='rule_6_1_1_ensure_accounting_destination_is_configured',
66
platform=['juniper_junos'],
7-
commands=dict(chk_cmd='')
7+
commands=dict(chk_cmd1='show configuration system accounting destination | match "server" | count')
88
)
99
def rule_6_1_1_ensure_accounting_destination_is_configured(commands, ref):
10-
assert '' in commands.chk_cmd, ref
10+
assert int(commands.chk_cmd1.strip()) >= 1, ref

CIS/Junos/6_system/6_1_accounting/rule_6_1_2_ensure_accounting_of_logins.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@medium(
55
name='rule_6_1_2_ensure_accounting_of_logins',
66
platform=['juniper_junos'],
7-
commands=dict(chk_cmd='')
7+
commands=dict(chk_cmd1='show configuration system accounting')
88
)
99
def rule_6_1_2_ensure_accounting_of_logins(commands, ref):
10-
assert '' in commands.chk_cmd, ref
10+
assert 'events login;' in commands.chk_cmd1, ref

0 commit comments

Comments
 (0)