use of com.yahoo.vespa.config.server.rpc.MockRequestHandler in project vespa by vespa-engine.
the class HttpListConfigsHandlerTest method setUp.
@Before
public void setUp() {
mockRequestHandler = new MockRequestHandler();
mockRequestHandler.setAllConfigs(new HashSet<ConfigKey<?>>() {
{
add(new ConfigKey<>("bar", "conf/id/", "foo"));
}
});
HttpListConfigsHandler.Context ctx = HttpListConfigsHandler.testOnlyContext();
handler = new HttpListConfigsHandler(ctx, mockRequestHandler);
namedHandler = new HttpListNamedConfigsHandler(ctx, mockRequestHandler);
}
use of com.yahoo.vespa.config.server.rpc.MockRequestHandler in project vespa by vespa-engine.
the class HttpListConfigsHandlerTest method setUp.
@Before
public void setUp() throws Exception {
mockRequestHandler = new MockRequestHandler();
mockRequestHandler.setAllConfigs(new HashSet<ConfigKey<?>>() {
{
add(new ConfigKey<>("bar", "conf/id", "foo"));
}
});
TestTenantBuilder tb = new TestTenantBuilder();
tb.createTenant(TenantName.from("mytenant")).withRequestHandler(mockRequestHandler).build();
Tenants tenants = tb.createTenants();
handler = new HttpListConfigsHandler(HttpListConfigsHandler.testOnlyContext(), tenants, Zone.defaultZone());
namedHandler = new HttpListNamedConfigsHandler(HttpListConfigsHandler.testOnlyContext(), tenants, Zone.defaultZone());
}
use of com.yahoo.vespa.config.server.rpc.MockRequestHandler in project vespa by vespa-engine.
the class HttpGetConfigHandlerTest method setUp.
@Before
public void setUp() throws Exception {
mockRequestHandler = new MockRequestHandler();
mockRequestHandler.setAllConfigs(new HashSet<ConfigKey<?>>() {
{
add(new ConfigKey<>("bar", "myid", "foo"));
}
});
TestTenantBuilder tb = new TestTenantBuilder();
tb.createTenant(tenant).withRequestHandler(mockRequestHandler).build();
Tenants tenants = tb.createTenants();
handler = new HttpGetConfigHandler(HttpGetConfigHandler.testOnlyContext(), tenants);
}
use of com.yahoo.vespa.config.server.rpc.MockRequestHandler in project vespa by vespa-engine.
the class HttpGetConfigHandlerTest method setUp.
@Before
public void setUp() {
mockRequestHandler = new MockRequestHandler();
mockRequestHandler.setAllConfigs(new HashSet<ConfigKey<?>>() {
{
add(new ConfigKey<>("bar", "myid", "foo"));
}
});
handler = new HttpGetConfigHandler(HttpGetConfigHandler.testOnlyContext(), mockRequestHandler);
}
Aggregations