Search in sources :

Example 6 with SecHubClientExecutor

use of com.mercedesbenz.sechub.integrationtest.internal.SecHubClientExecutor in project sechub by mercedes-benz.

the class WithSecHubClient method startSynchronScanFor.

public ExecutionResult startSynchronScanFor(TestProject project, Map<String, String> environmentVariables, File file, ApiTokenStrategy apiTokenStrategy, ClientWaitMode waitMode) {
    SecHubClientExecutor executor = createExecutor();
    List<String> list = buildEnvironmentAndBehaviourCommands(project, waitMode);
    if (waitMode == ClientWaitMode.WAIT_WITH_ENV_SETTINGS) {
        String value = System.getenv().get("SECHUB_WAITTIME_DEFAULT");
        if (value != null) {
            environmentVariables.put("SECHUB_WAITTIME_DEFAULT", value);
        }
    }
    return doExecute(ClientAction.START_SYNC, apiTokenStrategy, file, executor, list, environmentVariables);
}
Also used : SecHubClientExecutor(com.mercedesbenz.sechub.integrationtest.internal.SecHubClientExecutor)

Aggregations

SecHubClientExecutor (com.mercedesbenz.sechub.integrationtest.internal.SecHubClientExecutor)6 ExecutionResult (com.mercedesbenz.sechub.integrationtest.internal.SecHubClientExecutor.ExecutionResult)4 File (java.io.File)4