From 973f6bee19e20d4a1071a01491af0bbea69e6de0 Mon Sep 17 00:00:00 2001 From: Gael Leblan Date: Sun, 13 Oct 2024 00:33:19 +0200 Subject: [PATCH] [frontend/backend] Chaining injects conditionally --- .../io/openbas/scheduler/jobs/InjectsExecutionJob.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/openbas-api/src/main/java/io/openbas/scheduler/jobs/InjectsExecutionJob.java b/openbas-api/src/main/java/io/openbas/scheduler/jobs/InjectsExecutionJob.java index 4c690316b4..c11321a2d3 100644 --- a/openbas-api/src/main/java/io/openbas/scheduler/jobs/InjectsExecutionJob.java +++ b/openbas-api/src/main/java/io/openbas/scheduler/jobs/InjectsExecutionJob.java @@ -1,19 +1,12 @@ package io.openbas.scheduler.jobs; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.node.ArrayNode; -import com.fasterxml.jackson.databind.node.ObjectNode; import io.openbas.asset.QueueService; import io.openbas.database.model.*; import io.openbas.database.repository.*; import io.openbas.execution.ExecutableInject; import io.openbas.execution.ExecutionExecutorService; import io.openbas.helper.InjectHelper; -import io.openbas.inject_expectation.InjectExpectationService; -import io.openbas.injector_contract.ContractType; -import io.openbas.model.Expectation; import io.openbas.service.AtomicTestingService; import io.openbas.service.ExerciseExpectationService; import jakarta.annotation.Resource; @@ -28,16 +21,13 @@ import org.quartz.JobExecutionException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; -import org.springframework.expression.EvaluationContext; import org.springframework.expression.Expression; import org.springframework.expression.ExpressionParser; import org.springframework.expression.spel.standard.SpelExpressionParser; -import org.springframework.expression.spel.support.StandardEvaluationContext; import org.springframework.stereotype.Component; import java.time.Instant; import java.util.*; -import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors;