Search in sources :

Example 1 with Server

use of com.nike.riposte.server.Server in project riposte by Nike-Inc.

the class VerifyTimeoutsAndProxyConnectionPoolingWorksComponentTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    proxyServerShortCallTimeoutConfig = new TimeoutsAndProxyTestServerConfig(60 * 1000, 150, incompleteCallTimeoutMillis);
    proxyServerShortCallTimeout = new Server(proxyServerShortCallTimeoutConfig);
    proxyServerShortCallTimeout.startup();
    proxyServerLongTimeoutValuesConfig = new TimeoutsAndProxyTestServerConfig(60 * 1000, 60 * 1000, incompleteCallTimeoutMillis);
    proxyServerLongTimeoutValues = new Server(proxyServerLongTimeoutValuesConfig);
    proxyServerLongTimeoutValues.startup();
    downstreamServerConfig = new TimeoutsAndProxyTestServerConfig(300, 60 * 1000, incompleteCallTimeoutMillis);
    downstreamServer = new Server(downstreamServerConfig);
    downstreamServer.startup();
}
Also used : Server(com.nike.riposte.server.Server) BeforeClass(org.junit.BeforeClass)

Example 2 with Server

use of com.nike.riposte.server.Server in project riposte by Nike-Inc.

the class VerifyProxyRequestsDoNotAlterRequestToDownstreamServiceTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    downstreamServerConfig = new DownstreamServerTestConfig();
    downstreamServer = new Server(downstreamServerConfig);
    downstreamServer.startup();
    proxyServerConfig = new ProxyTestingTestConfig();
    proxyServer = new Server(proxyServerConfig);
    proxyServer.startup();
}
Also used : Server(com.nike.riposte.server.Server) BeforeClass(org.junit.BeforeClass)

Example 3 with Server

use of com.nike.riposte.server.Server in project riposte by Nike-Inc.

the class VerifyMiscellaneousFunctionalityComponentTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    serverConfig = new MiscellaneousFunctionalityTestConfig();
    server = new Server(serverConfig);
    server.startup();
}
Also used : Server(com.nike.riposte.server.Server) BeforeClass(org.junit.BeforeClass)

Example 4 with Server

use of com.nike.riposte.server.Server in project riposte by Nike-Inc.

the class VerifyRequestSizeValidationComponentTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    objectMapper = new ObjectMapper();
    serverConfig = new RequestSizeValidationConfig();
    server = new Server(serverConfig);
    server.startup();
}
Also used : Server(com.nike.riposte.server.Server) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) BeforeClass(org.junit.BeforeClass)

Example 5 with Server

use of com.nike.riposte.server.Server in project riposte by Nike-Inc.

the class VerifySSLComponentTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    serverConfig = new SSLTestConfig();
    server = new Server(serverConfig);
    server.startup();
}
Also used : Server(com.nike.riposte.server.Server) BeforeClass(org.junit.BeforeClass)

Aggregations

Server (com.nike.riposte.server.Server)20 BeforeClass (org.junit.BeforeClass)15 ArrayList (java.util.ArrayList)2 CompletableFuture (java.util.concurrent.CompletableFuture)2 Future (java.util.concurrent.Future)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 ConfigurationManager (com.netflix.config.ConfigurationManager)1 Pair (com.nike.internal.util.Pair)1 ServerConfig (com.nike.riposte.server.config.ServerConfig)1 Endpoint (com.nike.riposte.server.http.Endpoint)1 StandardEndpoint (com.nike.riposte.server.http.StandardEndpoint)1 SimpleProxyRouterEndpoint (com.nike.riposte.server.http.impl.SimpleProxyRouterEndpoint)1 MainClassUtils (com.nike.riposte.util.MainClassUtils)1 IOException (java.io.IOException)1 Collection (java.util.Collection)1 LinkedHashSet (java.util.LinkedHashSet)1 Set (java.util.Set)1 Function (java.util.function.Function)1 Collectors (java.util.stream.Collectors)1 AbstractConfiguration (org.apache.commons.configuration.AbstractConfiguration)1