Formatting test code
This commit is contained in:
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"properties": [
|
|
||||||
{
|
|
||||||
"name": "spring.cloud.function.web.path",
|
|
||||||
"type": "java.lang.String",
|
|
||||||
"description": "Path to web resources for functions (should start with / if not empty).",
|
|
||||||
"defaultValue": ""
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -96,23 +96,29 @@ public class RoutingBrokerTests {
|
|||||||
int routingBrokerClusterPort = SocketUtils.findAvailableTcpPort();
|
int routingBrokerClusterPort = SocketUtils.findAvailableTcpPort();
|
||||||
// start broker
|
// start broker
|
||||||
brokerContext = new SpringApplicationBuilder(SimpleConfiguration.class).web(WebApplicationType.NONE).run(
|
brokerContext = new SpringApplicationBuilder(SimpleConfiguration.class).web(WebApplicationType.NONE).run(
|
||||||
"--logging.level.io.rsocket.routing.broker=TRACE", "--spring.cloud.function.rsocket.enabled=false",
|
"--logging.level.io.rsocket.routing.broker=TRACE",
|
||||||
"--io.rsocket.routing.client.enabled=false", "--io.rsocket.routing.broker.enabled=true",
|
"--spring.cloud.function.rsocket.enabled=false",
|
||||||
|
"--io.rsocket.routing.client.enabled=false",
|
||||||
|
"--io.rsocket.routing.broker.enabled=true",
|
||||||
"--io.rsocket.routing.broker.tcp.port=" + routingBrokerProxyPort,
|
"--io.rsocket.routing.broker.tcp.port=" + routingBrokerProxyPort,
|
||||||
"--io.rsocket.routing.broker.cluster.port=" + routingBrokerClusterPort);
|
"--io.rsocket.routing.broker.cluster.port=" + routingBrokerClusterPort);
|
||||||
|
|
||||||
// start function connecting to broker, service-name=samplefn
|
// start function connecting to broker, service-name=samplefn
|
||||||
functionContext = new SpringApplicationBuilder(SampleFunctionConfiguration.class).web(WebApplicationType.NONE)
|
functionContext = new SpringApplicationBuilder(SampleFunctionConfiguration.class).web(WebApplicationType.NONE)
|
||||||
.run("--logging.level.org.springframework.cloud.function=DEBUG",
|
.run("--logging.level.org.springframework.cloud.function=DEBUG",
|
||||||
"--io.rsocket.routing.client.enabled=true", "--io.rsocket.routing.client.service-name=samplefn",
|
"--io.rsocket.routing.client.enabled=true",
|
||||||
|
"--io.rsocket.routing.client.service-name=samplefn",
|
||||||
"--io.rsocket.routing.client.brokers[0].host=localhost",
|
"--io.rsocket.routing.client.brokers[0].host=localhost",
|
||||||
"--io.rsocket.routing.client.brokers[0].port=" + routingBrokerProxyPort,
|
"--io.rsocket.routing.client.brokers[0].port=" + routingBrokerProxyPort,
|
||||||
"--io.rsocket.routing.broker.enabled=false", "--spring.cloud.function.definition=uppercase");
|
"--io.rsocket.routing.broker.enabled=false",
|
||||||
|
"--spring.cloud.function.definition=uppercase");
|
||||||
|
|
||||||
// start testclient connecting to broker, for RSocketRequester
|
// start testclient connecting to broker, for RSocketRequester
|
||||||
clientContext = new SpringApplicationBuilder(SimpleConfiguration.class).web(WebApplicationType.NONE).run(
|
clientContext = new SpringApplicationBuilder(SimpleConfiguration.class).web(WebApplicationType.NONE).run(
|
||||||
"--logging.level.io.rsocket.routing.client=TRACE", "--spring.cloud.function.rsocket.enabled=false",
|
"--logging.level.io.rsocket.routing.client=TRACE",
|
||||||
"--io.rsocket.routing.client.enabled=true", "--io.rsocket.routing.client.service-name=testclient",
|
"--spring.cloud.function.rsocket.enabled=false",
|
||||||
|
"--io.rsocket.routing.client.enabled=true",
|
||||||
|
"--io.rsocket.routing.client.service-name=testclient",
|
||||||
routingWithProperty ? "--io.rsocket.routing.client.address.toupper.service_name=samplefn" : "",
|
routingWithProperty ? "--io.rsocket.routing.client.address.toupper.service_name=samplefn" : "",
|
||||||
"--io.rsocket.routing.client.brokers[0].host=localhost",
|
"--io.rsocket.routing.client.brokers[0].host=localhost",
|
||||||
"--io.rsocket.routing.client.brokers[0].port=" + routingBrokerProxyPort,
|
"--io.rsocket.routing.client.brokers[0].port=" + routingBrokerProxyPort,
|
||||||
|
|||||||
Reference in New Issue
Block a user