diff options
author | Dan Timoney <dtimoney@att.com> | 2020-03-24 14:30:24 -0400 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2020-03-26 10:30:45 -0400 |
commit | b80471e4f68e6d5ba670d03b12b92029e58c0bc7 (patch) | |
tree | 055f386987f8972585ea509ebe3a8cc1bd72ba6f /sliapi/springboot/src/test/java | |
parent | aee68f0187cbd919ffb544cdd00653d02fd7e991 (diff) |
Use MariaDB instead of Derby
Use MariaDB instead of Derby as backing store for sliboot
Change-Id: Ib9fa4abaaf88bcb1eac2276bc974474f067a06d3
Issue-ID: CCSDK-2188
Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'sliapi/springboot/src/test/java')
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" + |