Skip to content

Commit 98ae6e7

Browse files
Update SamplesTest.java
added effective severity to test
1 parent b36c1ee commit 98ae6e7

File tree

1 file changed

+1
-1
lines changed
  • container-registry/container-analysis/src/test/java/com/example/containeranalysis

1 file changed

+1
-1
lines changed

container-registry/container-analysis/src/test/java/com/example/containeranalysis/SamplesTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public void testFindHighSeverityVulnerabilitiesForImage() throws Exception {
329329
// create high severity note
330330
Note newNote = Note.newBuilder()
331331
.setVulnerability(VulnerabilityNote.newBuilder()
332-
.setSeverity(Severity.CRITICAL)
332+
.setEffectiveSeverity(Severity.CRITICAL)
333333
.addDetails(VulnerabilityNote.Detail.newBuilder()
334334
.setAffectedCpeUri("your-uri-here")
335335
.setAffectedPackage("your-package-here")

0 commit comments

Comments
 (0)