Prepared code for parallel run
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
server.port: 8090
|
||||
server.port: 8097
|
||||
logging:
|
||||
level:
|
||||
org.springframework.web.client: debug
|
||||
|
||||
@@ -17,9 +17,9 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:8080", webEnvironment=WebEnvironment.NONE)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:6060", webEnvironment=WebEnvironment.NONE)
|
||||
@DirtiesContext
|
||||
@AutoConfigureWireMock
|
||||
@AutoConfigureWireMock(port = 6060)
|
||||
public class WiremockImportApplicationTests {
|
||||
|
||||
@Autowired
|
||||
|
||||
@@ -19,12 +19,12 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
import com.github.tomakehurst.wiremock.junit.WireMockClassRule;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:8080", webEnvironment=WebEnvironment.NONE)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:6061", webEnvironment=WebEnvironment.NONE)
|
||||
@DirtiesContext
|
||||
public class WiremockServerApplicationTests {
|
||||
|
||||
@ClassRule
|
||||
public static WireMockClassRule wiremock = new WireMockClassRule(WireMockSpring.options());
|
||||
public static WireMockClassRule wiremock = new WireMockClassRule(WireMockSpring.options().port(6061));
|
||||
|
||||
@Autowired
|
||||
private Service service;
|
||||
|
||||
@@ -18,12 +18,12 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
import com.github.tomakehurst.wiremock.junit.WireMockClassRule;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:8080", webEnvironment=WebEnvironment.NONE)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:6063", webEnvironment=WebEnvironment.NONE)
|
||||
@DirtiesContext
|
||||
public class WiremockServerApplicationTests {
|
||||
|
||||
@ClassRule
|
||||
public static WireMockClassRule wiremock = new WireMockClassRule();
|
||||
public static WireMockClassRule wiremock = new WireMockClassRule(6063);
|
||||
|
||||
@Autowired
|
||||
private Service service;
|
||||
|
||||
@@ -19,13 +19,13 @@ import com.github.tomakehurst.wiremock.junit.WireMockClassRule;
|
||||
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest("app.baseUrl=https://localhost:8443")
|
||||
@SpringBootTest("app.baseUrl=https://localhost:6443")
|
||||
@DirtiesContext
|
||||
public class WiremockHttpsServerApplicationTests {
|
||||
|
||||
@ClassRule
|
||||
public static WireMockClassRule wiremock = new WireMockClassRule(
|
||||
WireMockSpring.options().httpsPort(8443));
|
||||
WireMockSpring.options().httpsPort(6443));
|
||||
|
||||
@Autowired
|
||||
private Service service;
|
||||
|
||||
@@ -17,9 +17,9 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:8080", webEnvironment=WebEnvironment.NONE)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:6065", webEnvironment=WebEnvironment.NONE)
|
||||
@DirtiesContext
|
||||
@AutoConfigureWireMock
|
||||
@AutoConfigureWireMock(port = 6065)
|
||||
public class WiremockImportApplicationTests {
|
||||
|
||||
@Autowired
|
||||
|
||||
@@ -16,10 +16,10 @@ import org.springframework.test.annotation.DirtiesContext;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(properties = { "app.baseUrl=http://localhost:8080",
|
||||
@SpringBootTest(properties = { "app.baseUrl=http://localhost:6066",
|
||||
"server.context-path=/app" }, webEnvironment = WebEnvironment.NONE)
|
||||
@DirtiesContext
|
||||
@AutoConfigureWireMock
|
||||
@AutoConfigureWireMock(port = 6066)
|
||||
public class WiremockImportContextPathApplicationTests {
|
||||
|
||||
@Autowired
|
||||
|
||||
@@ -19,12 +19,12 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
import com.github.tomakehurst.wiremock.junit.WireMockClassRule;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:8080", webEnvironment=WebEnvironment.NONE)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:6067", webEnvironment=WebEnvironment.NONE)
|
||||
@DirtiesContext
|
||||
public class WiremockServerApplicationTests {
|
||||
|
||||
@ClassRule
|
||||
public static WireMockClassRule wiremock = new WireMockClassRule(WireMockSpring.options());
|
||||
public static WireMockClassRule wiremock = new WireMockClassRule(WireMockSpring.options().port(6067));
|
||||
|
||||
@Autowired
|
||||
private Service service;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#WireMock password - http://wiremock.org/docs/running-standalone/
|
||||
server.ssl.key-store-password=password
|
||||
server.ssl.key-password=password
|
||||
server.ssl.trust-store-password=password
|
||||
server.ssl.trust-store-password=password
|
||||
server.port=-1
|
||||
@@ -20,14 +20,14 @@ import com.github.tomakehurst.wiremock.junit.WireMockClassRule;
|
||||
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest("app.baseUrl=https://localhost:8443")
|
||||
@SpringBootTest("app.baseUrl=https://localhost:7443")
|
||||
@DirtiesContext
|
||||
@ActiveProfiles("ssl")
|
||||
public class WiremockHttpsServerApplicationTests {
|
||||
|
||||
@ClassRule
|
||||
public static WireMockClassRule wiremock = new WireMockClassRule(
|
||||
WireMockSpring.options().httpsPort(8443));
|
||||
WireMockSpring.options().httpsPort(7443));
|
||||
|
||||
@Autowired
|
||||
private Service service;
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
server.port=7070
|
||||
@@ -17,9 +17,9 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:8080", webEnvironment=WebEnvironment.NONE)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:7070", webEnvironment=WebEnvironment.NONE)
|
||||
@DirtiesContext
|
||||
@AutoConfigureWireMock
|
||||
@AutoConfigureWireMock(port = 7070)
|
||||
public class WiremockImportApplicationTests {
|
||||
|
||||
@Autowired
|
||||
|
||||
@@ -19,12 +19,12 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
import com.github.tomakehurst.wiremock.junit.WireMockClassRule;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:8080", webEnvironment=WebEnvironment.NONE)
|
||||
@SpringBootTest(properties="app.baseUrl=http://localhost:7071", webEnvironment=WebEnvironment.NONE)
|
||||
@DirtiesContext
|
||||
public class WiremockServerApplicationTests {
|
||||
|
||||
@ClassRule
|
||||
public static WireMockClassRule wiremock = new WireMockClassRule(WireMockSpring.options());
|
||||
public static WireMockClassRule wiremock = new WireMockClassRule(WireMockSpring.options().port(7071));
|
||||
|
||||
@Autowired
|
||||
private Service service;
|
||||
|
||||
@@ -1 +1 @@
|
||||
server.port=8090
|
||||
server.port=8094
|
||||
@@ -1 +1 @@
|
||||
server.port=8090
|
||||
server.port=8091
|
||||
@@ -1 +1 @@
|
||||
server.port=8090
|
||||
server.port=8092
|
||||
@@ -2,4 +2,6 @@ stubrunner:
|
||||
repositoryRoot: classpath:m2repo/repository/
|
||||
ids: org.springframework.cloud.contract.verifier.stubs.amqp:spring-cloud-contract-amqp-test:0.4.0-SNAPSHOT:stubs
|
||||
amqp:
|
||||
enabled: true
|
||||
enabled: true
|
||||
server:
|
||||
port: 0
|
||||
@@ -2,3 +2,5 @@ stubrunner:
|
||||
camel.enabled: false
|
||||
idsToServiceIds:
|
||||
fraudDetectionServer: someNameThatShouldMapFraudDetectionServer
|
||||
server:
|
||||
port: 0
|
||||
|
||||
@@ -2,3 +2,5 @@ stubrunner:
|
||||
camel.enabled: false
|
||||
idsToServiceIds:
|
||||
fraudDetectionServer: someNameThatShouldMapFraudDetectionServer
|
||||
server:
|
||||
port: 0
|
||||
@@ -1,2 +1,4 @@
|
||||
stubrunner.repositoryRoot: classpath:m2repo/repository/
|
||||
stubrunner.ids: org.springframework.cloud.contract.verifier.stubs:camelService
|
||||
stubrunner.ids: org.springframework.cloud.contract.verifier.stubs:camelService
|
||||
server:
|
||||
port: 0
|
||||
@@ -1,2 +1,4 @@
|
||||
stubrunner.repositoryRoot: classpath:m2repo/repository/
|
||||
stubrunner.ids: org.springframework.cloud.contract.verifier.stubs:integrationService:0.0.1-SNAPSHOT
|
||||
stubrunner.ids: org.springframework.cloud.contract.verifier.stubs:integrationService:0.0.1-SNAPSHOT
|
||||
server:
|
||||
port: 0
|
||||
@@ -8,4 +8,7 @@ spring:
|
||||
output:
|
||||
destination: returnBook
|
||||
input:
|
||||
destination: bookStorage
|
||||
destination: bookStorage
|
||||
|
||||
server:
|
||||
port: 0
|
||||
Reference in New Issue
Block a user