use of com.synopsys.integration.detect.battery.docker.util.SharedDockerTestRunner in project synopsys-detect by blackducksoftware.
the class RiskReportTests method riskReportCreatedInCustomDirectoryEvenIfItDoesntExist.
@Test
void riskReportCreatedInCustomDirectoryEvenIfItDoesntExist() throws IOException, InterruptedException, IntegrationException {
SharedDockerTestRunner test = anyProjectWithRiskReportResultsInBlackDuck("risk-report-directory-does-not-exist", new NameVersion("risk-reports", "directory-does-not-exist"));
test.command.property(DetectProperties.DETECT_RISK_REPORT_PDF, "true");
// simply using a directory that does not exist
test.command.property(DetectProperties.DETECT_RISK_REPORT_PDF_PATH, "/opt/report/");
DockerAssertions dockerAssertions = test.run();
dockerAssertions.resultProducedAtLocation("/opt/report/risk_reports_directory_does_not_exist_BlackDuck_RiskReport.pdf");
}
Aggregations