Skip to content

Commit ec235ae

Browse files
netpickermailsanjayhere
authored andcommitted
New feature branch (#57)
* snmp policies updation * updated flake8 * Remove virtual environment from repository * Update .gitignore to exclude .env directory * added one more test * new test files added --------- Co-authored-by: mailsanjayhere <mailsanjayhere@gmail.com>
1 parent 90a9283 commit ec235ae

8 files changed

+164
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
defaults:
2+
devices:
3+
- platform: cisco_xe
4+
5+
tests:
6+
rule_1110_set_aaa_accounting_system:
7+
- outcome: TESTS_FAILED
8+
configuration: |
9+
hostname not-interesting
10+
no aaa new-model
11+
- outcome: OK
12+
configuration: |
13+
aaa new-model
14+
- outcome: OK
15+
configuration: |
16+
no aab new-model
17+
18+
- outcome: NO_TESTS_COLLECTED
19+
devices:
20+
- platform: juniperOS
21+
ipaddress: 19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
defaults:
2+
devices:
3+
- platform: cisco_xe
4+
5+
tests:
6+
rule_113_enable_aaa_authentication_enable_default:
7+
- outcome: TESTS_FAILED
8+
configuration: |
9+
hostname not-interesting
10+
aaa authentication
11+
- outcome: OK
12+
configuration: |
13+
aaa authentication enable
14+
15+
- outcome: NO_TESTS_COLLECTED
16+
devices:
17+
- platform: juniperOS
18+
ipaddress: 19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
defaults:
2+
devices:
3+
- ipaddress: 192.168.1.1
4+
platform: cisco_xe
5+
tenant: default
6+
7+
tests:
8+
rule_114_set_login_authentication_for_line_vty:
9+
- outcome: OK
10+
commands:
11+
show running-config | sec line con: login authentication default
12+
- outcome: OK
13+
commands:
14+
show running-config | sec line vty: login authentication aaa_list_name
15+
- outcome: TESTS_FAILED
16+
commands:
17+
show running-config | sec line con: authentication
18+
- outcome: TESTS_FAILED
19+
commands:
20+
show running-config | sec line vty: login
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
defaults:
2+
devices:
3+
- platform: cisco_xe
4+
5+
tests:
6+
rule_115_set_login_authentication_for_ip_http:
7+
- outcome: TESTS_FAILED
8+
configuration: |
9+
hostname not-interesting
10+
no aaa new-model
11+
- outcome: OK
12+
configuration: |
13+
aaa new-model
14+
- outcome: OK
15+
configuration: |
16+
no aab new-model
17+
18+
- outcome: NO_TESTS_COLLECTED
19+
devices:
20+
- platform: juniperOS
21+
ipaddress: 19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
defaults:
2+
devices:
3+
- platform: cisco_xe
4+
5+
tests:
6+
rule_116_set_aaa_accounting_to_log_all_privileged_use_commands:
7+
- outcome: TESTS_FAILED
8+
configuration: |
9+
hostname not-interesting
10+
no aaa new-model
11+
- outcome: OK
12+
configuration: |
13+
aaa new-model
14+
- outcome: OK
15+
configuration: |
16+
no aab new-model
17+
18+
- outcome: NO_TESTS_COLLECTED
19+
devices:
20+
- platform: juniperOS
21+
ipaddress: 19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
defaults:
2+
devices:
3+
- platform: cisco_xe
4+
5+
tests:
6+
rule_117_set_aaa_accounting_connection:
7+
- outcome: TESTS_FAILED
8+
configuration: |
9+
hostname not-interesting
10+
no aaa new-model
11+
- outcome: OK
12+
configuration: |
13+
aaa new-model
14+
- outcome: OK
15+
configuration: |
16+
no aab new-model
17+
18+
- outcome: NO_TESTS_COLLECTED
19+
devices:
20+
- platform: juniperOS
21+
ipaddress: 19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
defaults:
2+
devices:
3+
- platform: cisco_xe
4+
5+
tests:
6+
rule_118_set_aaa_accounting_exec:
7+
- outcome: TESTS_FAILED
8+
configuration: |
9+
hostname not-interesting
10+
no aaa new-model
11+
- outcome: OK
12+
configuration: |
13+
aaa new-model
14+
- outcome: OK
15+
configuration: |
16+
no aab new-model
17+
18+
- outcome: NO_TESTS_COLLECTED
19+
devices:
20+
- platform: juniperOS
21+
ipaddress: 19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
defaults:
2+
devices:
3+
- platform: cisco_xe
4+
5+
tests:
6+
rule_119_set_aaa_accounting_network:
7+
- outcome: TESTS_FAILED
8+
configuration: |
9+
hostname not-interesting
10+
no aaa new-model
11+
- outcome: OK
12+
configuration: |
13+
aaa new-model
14+
- outcome: OK
15+
configuration: |
16+
no aab new-model
17+
18+
- outcome: NO_TESTS_COLLECTED
19+
devices:
20+
- platform: juniperOS
21+
ipaddress: 19

0 commit comments

Comments
 (0)