Skip to content

Commit

Permalink
Add functional test of snmp_security_check (#791)
Browse files Browse the repository at this point in the history
This change adds a new functional test of the new snmp plugin
snmp_security_check.

Fixes: #790

Signed-off-by: Eric Brown <browne@vmware.com>
  • Loading branch information
ericwb authored Feb 4, 2022
1 parent 4bc8155 commit 05c7d89
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/functional/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,3 +824,11 @@ def test_no_blacklist_pycryptodome(self):
"CONFIDENCE": {"UNDEFINED": 0, "LOW": 0, "MEDIUM": 0, "HIGH": 0},
}
self.check_example("pycryptodome.py", expect)

def test_snmp_security_check(self):
"""Test insecure and weak crypto usage of SNMP."""
expect = {
"SEVERITY": {"UNDEFINED": 0, "LOW": 0, "MEDIUM": 3, "HIGH": 0},
"CONFIDENCE": {"UNDEFINED": 0, "LOW": 0, "MEDIUM": 0, "HIGH": 3},
}
self.check_example("snmp.py", expect)

0 comments on commit 05c7d89

Please sign in to comment.