From: Vijay Venkatesh Kumar Date: Thu, 16 Jul 2020 21:15:17 +0000 (+0000) Subject: Merge "Add external tls info to bpgenerator and component spec schema" X-Git-Tag: 1.4.0~9 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=e996e07eea9189ffd89418047eb26293ef33e419;hp=69644638aa0e93c9c2c2ccea590fa02213d24a7a;p=dcaegen2%2Fplatform.git Merge "Add external tls info to bpgenerator and component spec schema" --- diff --git a/mod/genprocessor/pom.xml b/mod/genprocessor/pom.xml index bcd271f..22e85f5 100644 --- a/mod/genprocessor/pom.xml +++ b/mod/genprocessor/pom.xml @@ -26,7 +26,7 @@ limitations under the License. org.onap.dcaegen2.platform.mod genprocessor - 1.0.1-SNAPSHOT + 1.0.2-SNAPSHOT dcaegen2-platform-mod-genprocessor UTF-8 @@ -81,12 +81,12 @@ limitations under the License. com.fasterxml.jackson.core jackson-core - 2.10.0.pr1 + 2.11.0 com.fasterxml.jackson.core jackson-databind - 2.10.0.pr1 + 2.11.0 org.apache.commons diff --git a/mod/runtimeapi/runtime-core/pom.xml b/mod/runtimeapi/runtime-core/pom.xml index c43c3dc..0318d2f 100644 --- a/mod/runtimeapi/runtime-core/pom.xml +++ b/mod/runtimeapi/runtime-core/pom.xml @@ -54,7 +54,7 @@ limitations under the License. org.yaml snakeyaml - 1.23 + 1.26 diff --git a/mod/runtimeapi/runtime-web/pom.xml b/mod/runtimeapi/runtime-web/pom.xml index c19c29e..722c36a 100644 --- a/mod/runtimeapi/runtime-web/pom.xml +++ b/mod/runtimeapi/runtime-web/pom.xml @@ -25,7 +25,7 @@ limitations under the License. 1.0.1 runtime-web - 1.0.3-SNAPSHOT + 1.0.4-SNAPSHOT jar runtime-web MOD Runtime Web Module @@ -64,12 +64,12 @@ limitations under the License. io.springfox springfox-swagger2 - 2.9.2 + 2.10.5 io.springfox springfox-swagger-ui - 2.9.2 + 2.10.5 org.json 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 { @@ -78,6 +79,12 @@ public class TestFlowGraphController { .applyTo(blueprintInventory); } + @Test + public void testSwaggerUi() throws Exception { + mockMvc.perform(get("/swagger-ui.html")) + .andExpect(status().isOk()); + } + @Test public void testInitializeGraph() throws Exception{ graphRequest.setMain(true);