From fb3e87f892ee321148e6988a7089a2e6da262c69 Mon Sep 17 00:00:00 2001 From: Bartosz Gardziejewski Date: Tue, 12 May 2020 11:56:14 +0200 Subject: Add profile "integration" that will run integration tests for PNF and Netconf Issue-ID: INT-1533 Signed-off-by: Bartosz Gardziejewski Change-Id: Ib03bad90ac6921e9f75bda6d1e5163ef05b06d3e --- README.md | 8 ++++---- netconfsimulator/pom.xml | 9 --------- pnfsimulator/integration/pom.xml | 14 ++++---------- pnfsimulator/pom.xml | 1 + pom.xml | 11 +++++++++-- 5 files changed, 18 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 6c6bb17..3ed2612 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,13 @@ Project consists of three submodules: Detailed information about submodules can be found in ```README.md``` in their directories. -## Project building +## Building Docker images ``` -mvn clean package +mvn clean install -P docker ``` -## Building Docker images +## Run integration tests ``` -mvn clean package -P docker -DskipTests=true +mvn verify -P integration ``` ##Sanity check diff --git a/netconfsimulator/pom.xml b/netconfsimulator/pom.xml index d5f9e67..5502c69 100644 --- a/netconfsimulator/pom.xml +++ b/netconfsimulator/pom.xml @@ -48,8 +48,6 @@ ${project.build.directory}/cmake ${netopeer-saver-build-dir}/bin "" - true - false ${project.basedir}/src/it/java 3.1.0 @@ -237,13 +235,6 @@ - - integration - - false - true - - docker diff --git a/pnfsimulator/integration/pom.xml b/pnfsimulator/integration/pom.xml index 1e895bb..45cd6e1 100644 --- a/pnfsimulator/integration/pom.xml +++ b/pnfsimulator/integration/pom.xml @@ -41,6 +41,8 @@ 11 11 + 3.2.0 + 3.9.1 @@ -48,53 +50,46 @@ org.assertj assertj-core - 3.9.1 test org.springframework.boot spring-boot-starter - 2.0.2.RELEASE org.springframework.boot spring-boot-starter-web - 2.0.2.RELEASE io.rest-assured rest-assured - 3.2.0 + ${rest-assured.version} org.mongodb mongo-java-driver - 3.9.1 + ${mongo-java-driver.version} org.springframework spring-test - 5.0.4.RELEASE test org.springframework.boot spring-boot-starter-test - 2.0.1.RELEASE test com.google.code.gson gson - 2.8.2 com.palantir.docker.compose docker-compose-rule-junit4 - 0.34.0 @@ -117,7 +112,6 @@ org.apache.maven.plugins maven-surefire-plugin - 2.12.1 diff --git a/pnfsimulator/pom.xml b/pnfsimulator/pom.xml index 6ffe1e1..2f5bab1 100644 --- a/pnfsimulator/pom.xml +++ b/pnfsimulator/pom.xml @@ -272,6 +272,7 @@ + ${skip-unit-tests} true true false diff --git a/pom.xml b/pom.xml index e328340..dd40fcd 100644 --- a/pom.xml +++ b/pom.xml @@ -100,10 +100,13 @@ 2.1.6.RELEASE 2.2.7.RELEASE 0.1.0 - 0.29.1 + 0.34.0 5.0.4.RELEASE 5.1.0 1.5.0 + + true + false @@ -328,10 +331,14 @@ - tests + integration false + + false + true + pnfsimulator/integration -- cgit 1.2.3-korg