diff options
author | Andrew Gauld <agauld@att.com> | 2020-07-10 14:24:15 +0000 |
---|---|---|
committer | Andrew Gauld <agauld@att.com> | 2020-07-10 14:27:07 +0000 |
commit | fdc904e28525bf714b195cc2938684f5fd0f5c66 (patch) | |
tree | bdba906d7999427ea37298ee0e008256eee86283 /mod/runtimeapi/runtime-web/src | |
parent | 47994e9de1a29b849e3e9423a1c8ee2df78a3589 (diff) |
Runtimeapi dependency updates
Change-Id: Ied9b193eb47554db4824238a986d48b67aabf158
Issue-ID: DCAEGEN2-2272
Signed-off-by: Andrew Gauld <agauld@att.com>
Diffstat (limited to 'mod/runtimeapi/runtime-web/src')
2 files changed, 10 insertions, 3 deletions
diff --git a/mod/runtimeapi/runtime-web/src/main/java/org/onap/dcae/runtime/web/RuntimeapiApplication.java b/mod/runtimeapi/runtime-web/src/main/java/org/onap/dcae/runtime/web/RuntimeapiApplication.java index f22c7e7..611b332 100644 --- a/mod/runtimeapi/runtime-web/src/main/java/org/onap/dcae/runtime/web/RuntimeapiApplication.java +++ b/mod/runtimeapi/runtime-web/src/main/java/org/onap/dcae/runtime/web/RuntimeapiApplication.java @@ -19,10 +19,10 @@ package org.onap.dcae.runtime.web; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -import springfox.documentation.swagger2.annotations.EnableSwagger2; +import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc; @SpringBootApplication -@EnableSwagger2 +@EnableSwagger2WebMvc public class RuntimeapiApplication { public static void main(String[] args) { diff --git a/mod/runtimeapi/runtime-web/src/test/java/org/onap/dcae/runtime/web/controllers/TestFlowGraphController.java b/mod/runtimeapi/runtime-web/src/test/java/org/onap/dcae/runtime/web/controllers/TestFlowGraphController.java index dbbfd8d..60ff810 100644 --- a/mod/runtimeapi/runtime-web/src/test/java/org/onap/dcae/runtime/web/controllers/TestFlowGraphController.java +++ b/mod/runtimeapi/runtime-web/src/test/java/org/onap/dcae/runtime/web/controllers/TestFlowGraphController.java @@ -29,6 +29,7 @@ import org.onap.dcae.runtime.web.TestUtils; import org.onap.dcae.runtime.web.models.Action; import org.onap.dcae.runtime.web.models.DistributeGraphRequest; import org.onap.dcae.runtime.web.models.GraphRequest; +import org.onap.dcae.runtime.web.RuntimeapiApplication; import org.onap.dcae.runtime.web.service.GraphServiceImpl; import org.onap.dcae.runtime.web.service.BlueprintInventory; import org.junit.Before; @@ -50,7 +51,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; @RunWith(SpringRunner.class) -@SpringBootTest +@SpringBootTest(classes=RuntimeapiApplication.class) @AutoConfigureMockMvc public class TestFlowGraphController { @@ -79,6 +80,12 @@ public class TestFlowGraphController { } @Test + public void testSwaggerUi() throws Exception { + mockMvc.perform(get("/swagger-ui.html")) + .andExpect(status().isOk()); + } + + @Test public void testInitializeGraph() throws Exception{ graphRequest.setMain(true); mockMvc.perform(get("/api/graph/main")) |