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);
}
Aggregations