From 7a9fc42a9bd14387778bc60c67d0d4328b52a0c9 Mon Sep 17 00:00:00 2001 From: Stephanya Casanova Date: Fri, 20 Dec 2024 10:36:49 +0100 Subject: [PATCH] [backend] Clean --- .../java/io/openbas/octi/OpenCTIApiTest.java | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/openbas-api/src/test/java/io/openbas/octi/OpenCTIApiTest.java b/openbas-api/src/test/java/io/openbas/octi/OpenCTIApiTest.java index 3df17cf08d..3bca902d83 100644 --- a/openbas-api/src/test/java/io/openbas/octi/OpenCTIApiTest.java +++ b/openbas-api/src/test/java/io/openbas/octi/OpenCTIApiTest.java @@ -187,31 +187,6 @@ public void testCreateInjectForScenario_ValidInput_Additional_param() throws Exc .andExpect(status().isOk()); } - // -- INJECTS -- - @Test - @DisplayName( - "Test to validate existence of 'Add Inject to Scenario' endpoint and validate InjectInput") - public void testCreateInjectForScenario_ValidInput_Without_Param() throws Exception { - // -- PREPARE -- - String jsonInput = - "{" - + "\"inject_title\": \"Valid Title\", " - + "\"inject_type\": \"openbas_email\", " - + "\"inject_injector_contract\": \"contract-id\", " - + "\"inject_content\": null, " - + "\"inject_depends_duration\": 100, " - + "\"inject_tags\": [\"Tag1\"] " - + "}"; - - // -- EXECUTE -- - mockMvc - .perform( - post("/api/scenarios/{scenarioId}/injects", "scenario-id") - .contentType(MediaType.APPLICATION_JSON) - .content(jsonInput)) - .andExpect(status().isOk()); - } - // -- LAST EXERCISE BY EXTERNAL ID -- @Test @DisplayName("Test to validate existence of the Get Last Exercise Result endpoint")