From f1d268d1f72d6f890498fbc1d7333218d910a750 Mon Sep 17 00:00:00 2001 From: Kailun Qin Date: Fri, 13 Apr 2018 15:58:09 +0800 Subject: Drop DB migration support due to security reasons Drop current DB migration support in functest using dropwizard-migrations due to security concerns. Also downgrade jersey versions to 2.25.1 since dropwizard:1.3.1 does not support jersey:2.26. Change-Id: I87ace8d3132af7a04141a7d89db80a134a69d538 Issue-ID: VNFSDK-246 Signed-off-by: Kailun Qin --- vnf-sdk-function-test/pom.xml | 12 ++--- .../onap/vnfsdk/functest/VnfSdkFuncTestApp.java | 7 --- .../src/main/resources/migrations.xml | 57 ---------------------- 3 files changed, 4 insertions(+), 72 deletions(-) delete mode 100644 vnf-sdk-function-test/src/main/resources/migrations.xml diff --git a/vnf-sdk-function-test/pom.xml b/vnf-sdk-function-test/pom.xml index 2ad2b56..560d444 100644 --- a/vnf-sdk-function-test/pom.xml +++ b/vnf-sdk-function-test/pom.xml @@ -26,6 +26,7 @@ 4.0.0 vnf-sdk-function-test vnfsdk Functional Tests + 1.1.0-SNAPSHOT jar @@ -144,11 +145,6 @@ dropwizard-hibernate 1.3.1 - - io.dropwizard - dropwizard-migrations - 1.3.1 - org.projectlombok @@ -164,17 +160,17 @@ org.glassfish.jersey.core jersey-server - 2.26 + 2.25.1 org.glassfish.jersey.media jersey-media-multipart - 2.26 + 2.25.1 org.glassfish.jersey.containers jersey-container-servlet-core - 2.26 + 2.25.1 diff --git a/vnf-sdk-function-test/src/main/java/org/onap/vnfsdk/functest/VnfSdkFuncTestApp.java b/vnf-sdk-function-test/src/main/java/org/onap/vnfsdk/functest/VnfSdkFuncTestApp.java index cb5f681..e77efc1 100644 --- a/vnf-sdk-function-test/src/main/java/org/onap/vnfsdk/functest/VnfSdkFuncTestApp.java +++ b/vnf-sdk-function-test/src/main/java/org/onap/vnfsdk/functest/VnfSdkFuncTestApp.java @@ -21,7 +21,6 @@ import io.dropwizard.Application; import io.dropwizard.db.DataSourceFactory; import io.dropwizard.hibernate.HibernateBundle; import io.dropwizard.hibernate.ScanningHibernateBundle; -import io.dropwizard.migrations.MigrationsBundle; import io.dropwizard.server.SimpleServerFactory; import io.dropwizard.setup.Bootstrap; import io.dropwizard.setup.Environment; @@ -58,12 +57,6 @@ public class VnfSdkFuncTestApp extends Application bootstrap) { - bootstrap.addBundle(new MigrationsBundle() { - @Override - public DataSourceFactory getDataSourceFactory(VnfSdkFuncTestAppConfiguration configuration) { - return configuration.getDataSourceFactory(); - } - }); bootstrap.addBundle(hibernateBundle); } diff --git a/vnf-sdk-function-test/src/main/resources/migrations.xml b/vnf-sdk-function-test/src/main/resources/migrations.xml deleted file mode 100644 index 9ec5510..0000000 --- a/vnf-sdk-function-test/src/main/resources/migrations.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit 1.2.3-korg