Skip to content

Commit

Permalink
Update VulnerabilityScanResultProcessorTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
sahibamittal committed Jul 5, 2024
1 parent 94935aa commit a25e855
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
import static org.dependencytrack.proto.vulnanalysis.v1.Scanner.SCANNER_INTERNAL;
import static org.dependencytrack.proto.vulnanalysis.v1.Scanner.SCANNER_OSSINDEX;
import static org.dependencytrack.proto.vulnanalysis.v1.Scanner.SCANNER_SNYK;
import static org.dependencytrack.proto.vulnanalysis.v1.Scanner.SCANNER_TRIVY;
import static org.dependencytrack.util.KafkaTestUtil.deserializeKey;
import static org.dependencytrack.util.KafkaTestUtil.deserializeValue;

Expand Down Expand Up @@ -439,6 +440,7 @@ private Object[] canUpdateExistingVulnerabilityTestParams() {
new Object[]{"SNYK-001", "SNYK", SCANNER_OSSINDEX, null, null, false},
new Object[]{"sonatype-001", "OSSINDEX", SCANNER_SNYK, null, null, false},
new Object[]{"SNYK-001", "SNYK", SCANNER_SNYK, null, null, true},
new Object[]{"CVE-009", "NVD", SCANNER_TRIVY, ConfigPropertyConstants.VULNERABILITY_SOURCE_NVD_ENABLED, "true", false},
// Updating of internal vulnerabilities must always be forbidden.
new Object[]{"INT-001", "INTERNAL", SCANNER_OSSINDEX, null, null, false},
new Object[]{"INT-001", "INTERNAL", SCANNER_SNYK, null, null, false},
Expand Down

0 comments on commit a25e855

Please sign in to comment.