diff options
Diffstat (limited to 'sliapi/springboot/src/test/java/org')
2 files changed, 5 insertions, 0 deletions
diff --git a/sliapi/springboot/src/test/java/org/onap/ccsdk/sli/core/sliapi/springboot/AppTest.java b/sliapi/springboot/src/test/java/org/onap/ccsdk/sli/core/sliapi/springboot/AppTest.java index c5f452cb8..5ad6da9fd 100644 --- a/sliapi/springboot/src/test/java/org/onap/ccsdk/sli/core/sliapi/springboot/AppTest.java +++ b/sliapi/springboot/src/test/java/org/onap/ccsdk/sli/core/sliapi/springboot/AppTest.java @@ -18,6 +18,7 @@ public class AppTest { @Before public void setUp() throws Exception { app = new App(); + System.setProperty("serviceLogicProperties", "src/test/resources/svclogic.properties"); } @Test diff --git a/sliapi/springboot/src/test/java/org/onap/ccsdk/sli/core/sliapi/springboot/RestconfApiControllerTest.java b/sliapi/springboot/src/test/java/org/onap/ccsdk/sli/core/sliapi/springboot/RestconfApiControllerTest.java index b4c629097..ae21cef5f 100644 --- a/sliapi/springboot/src/test/java/org/onap/ccsdk/sli/core/sliapi/springboot/RestconfApiControllerTest.java +++ b/sliapi/springboot/src/test/java/org/onap/ccsdk/sli/core/sliapi/springboot/RestconfApiControllerTest.java @@ -126,6 +126,10 @@ public class RestconfApiControllerTest { assertEquals(200, mvcResult.getResponse().getStatus()); + // Delete any existing content before testing insert + mvcResult = mvc.perform(MockMvcRequestBuilders.delete(url)).andReturn(); + assertEquals(200, mvcResult.getResponse().getStatus()); + String jsonString = "{\n" + " \"test-results\" : [\n" + " {\n" + |