aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGervais-Martial Ngueko <gervais-martial.ngueko@intl.att.com>2020-07-29 13:12:25 +0000
committerGerrit Code Review <gerrit@onap.org>2020-07-29 13:12:25 +0000
commite760f72203c95b684d88cc19216c1cfbdcdbc089 (patch)
tree6add1353fff22df7246094886e3ab19271789360
parentcac17e887b4df189fc9123097e1442d0b6c421b8 (diff)
parentd6f441375ba214ad849c370798a7fdc3d6ff5bc6 (diff)
Merge "Attempt to fix the verify job problem"
-rw-r--r--pom.xml4
-rw-r--r--src/test/java/org/onap/clamp/clds/it/HttpsItCase.java4
-rw-r--r--src/test/java/org/onap/clamp/clds/it/RobotItCase.java2
3 files changed, 6 insertions, 4 deletions
diff --git a/pom.xml b/pom.xml
index 245bae022..6eb411a29 100644
--- a/pom.xml
+++ b/pom.xml
@@ -914,8 +914,8 @@
<includes>
<include>**/*ItCase.java</include>
</includes>
- <forkCount>1C</forkCount>
- <reuseForks>false</reuseForks>
+ <forkCount>1</forkCount>
+ <reuseForks>true</reuseForks>
<useSystemClassLoader>false</useSystemClassLoader>
<argLine>${failsafeArgLine}</argLine>
</configuration>
diff --git a/src/test/java/org/onap/clamp/clds/it/HttpsItCase.java b/src/test/java/org/onap/clamp/clds/it/HttpsItCase.java
index 510e32736..90a240181 100644
--- a/src/test/java/org/onap/clamp/clds/it/HttpsItCase.java
+++ b/src/test/java/org/onap/clamp/clds/it/HttpsItCase.java
@@ -29,14 +29,12 @@ import java.io.File;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.nio.charset.Charset;
-
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSession;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
-
import org.apache.commons.io.FileUtils;
import org.junit.BeforeClass;
import org.junit.Test;
@@ -47,6 +45,7 @@ import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.http.client.SimpleClientHttpRequestFactory;
+import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.web.client.RestTemplate;
@@ -57,6 +56,7 @@ import org.springframework.web.client.RestTemplate;
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = WebEnvironment.DEFINED_PORT)
@TestPropertySource(locations = "classpath:https/https-test.properties")
+@DirtiesContext
public class HttpsItCase {
@Value("${server.port}")
diff --git a/src/test/java/org/onap/clamp/clds/it/RobotItCase.java b/src/test/java/org/onap/clamp/clds/it/RobotItCase.java
index b386d9bb8..5eff96e44 100644
--- a/src/test/java/org/onap/clamp/clds/it/RobotItCase.java
+++ b/src/test/java/org/onap/clamp/clds/it/RobotItCase.java
@@ -45,12 +45,14 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
@TestPropertySource(locations = "classpath:robotframework/robotframework-test.properties")
+@DirtiesContext
public class RobotItCase {
@Value("${server.port}")