Skip to content

Commit

Permalink
Add depscan 4.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
algomaster99 committed Aug 28, 2023
1 parent ffec609 commit bc5ed39
Show file tree
Hide file tree
Showing 2 changed files with 674 additions and 0 deletions.
8 changes: 8 additions & 0 deletions watchdog-agent/src/test/java/AgentTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ void pdfbox_3_0_0_cyclonedx_2_7_4(@TempDir Path dir) throws IOException, Interru
assertThat(runPDFBoxWithSbom(project.resolve("bom.json"), output)).isEqualTo(1);
}

@Test
void pdfbox_3_0_0_depscan_4_2_2(@TempDir Path dir) throws IOException, InterruptedException {
// contract: pdfbox-tools 3.0.0 should not execute as the SBOM has no root component
Path output = dir.resolve("output.txt");
assertThat(runPDFBoxWithSbom(project.resolve("sbom-universal.json"), output))
.isEqualTo(1);
}

private int runPDFBoxWithSbom(Path sbom, Path output) throws IOException, InterruptedException {
Path appWhichContainsExecutable = project.resolve("pdfbox-tools-3.0.0.jar");
String mainClass = "org.apache.pdfbox.tools.PDFBox";
Expand Down
Loading

0 comments on commit bc5ed39

Please sign in to comment.