-
Notifications
You must be signed in to change notification settings - Fork 0
Improved vulnerability service #308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Een paar kleine dingen, maar ik heb niet genoeg kennis van het project om inhoudelijk te reviewen
src/main/java/org/frankframework/insights/common/configuration/SystemDataInitializer.java
Outdated
Show resolved
Hide resolved
src/main/java/org/frankframework/insights/vulnerability/VulnerabilityController.java
Outdated
Show resolved
Hide resolved
src/test/java/org/frankframework/insights/vulnerability/VulnerabilityServiceTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/frankframework/insights/vulnerability/VulnerabilityServiceTest.java
Show resolved
Hide resolved
Ik heb een aantal kleine dingen aangepast! |
|
public void mapSeverityFromString_shouldHandleCaseInsensitiveMatching() { | ||
assertEquals(VulnerabilitySeverity.CRITICAL, vulnerabilityService.mapSeverityFromString("critical")); | ||
assertEquals(VulnerabilitySeverity.CRITICAL, vulnerabilityService.mapSeverityFromString("CRITICAL")); | ||
assertEquals(VulnerabilitySeverity.HIGH, vulnerabilityService.mapSeverityFromString("High")); | ||
assertEquals(VulnerabilitySeverity.MEDIUM, vulnerabilityService.mapSeverityFromString("MeDiUm")); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could make this a nice parameterized test
See #301