Search in sources :

Example 6 with SharedDockerTestRunner

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");
}
Also used : SharedDockerTestRunner(com.synopsys.integration.detect.battery.docker.util.SharedDockerTestRunner) NameVersion(com.synopsys.integration.util.NameVersion) DockerAssertions(com.synopsys.integration.detect.battery.docker.util.DockerAssertions) Test(org.junit.jupiter.api.Test)

Aggregations

SharedDockerTestRunner (com.synopsys.integration.detect.battery.docker.util.SharedDockerTestRunner)6 DockerAssertions (com.synopsys.integration.detect.battery.docker.util.DockerAssertions)4 NameVersion (com.synopsys.integration.util.NameVersion)4 Test (org.junit.jupiter.api.Test)4 DetectCommandBuilder (com.synopsys.integration.detect.battery.docker.util.DetectCommandBuilder)2 DetectDockerTestRunner (com.synopsys.integration.detect.battery.docker.util.DetectDockerTestRunner)2