Skip to content

Commit

Permalink
[backend] Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
savacano28 committed Dec 20, 2024
1 parent d30bf49 commit 7a9fc42
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions openbas-api/src/test/java/io/openbas/octi/OpenCTIApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7a9fc42

Please sign in to comment.