Search in sources :

Example 6 with Tenants

use of com.yahoo.vespa.config.server.tenant.Tenants 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);
}
Also used : MockRequestHandler(com.yahoo.vespa.config.server.rpc.MockRequestHandler) ConfigKey(com.yahoo.vespa.config.ConfigKey) Tenants(com.yahoo.vespa.config.server.tenant.Tenants) Before(org.junit.Before)

Aggregations

Tenants (com.yahoo.vespa.config.server.tenant.Tenants)6 Before (org.junit.Before)4 ConfigKey (com.yahoo.vespa.config.ConfigKey)2 MockRequestHandler (com.yahoo.vespa.config.server.rpc.MockRequestHandler)2 LocalSession (com.yahoo.vespa.config.server.session.LocalSession)2 Tenant (com.yahoo.vespa.config.server.tenant.Tenant)2 MockCurator (com.yahoo.vespa.curator.mock.MockCurator)2 ApplicationPackage (com.yahoo.config.application.api.ApplicationPackage)1 NullConfigModelRegistry (com.yahoo.config.model.NullConfigModelRegistry)1 FilesApplicationPackage (com.yahoo.config.model.application.provider.FilesApplicationPackage)1 ApplicationId (com.yahoo.config.provision.ApplicationId)1 Provisioner (com.yahoo.config.provision.Provisioner)1 TenantName (com.yahoo.config.provision.TenantName)1 Path (com.yahoo.path.Path)1 GlobalComponentRegistry (com.yahoo.vespa.config.server.GlobalComponentRegistry)1 SuperModelGenerationCounter (com.yahoo.vespa.config.server.SuperModelGenerationCounter)1 TestComponentRegistry (com.yahoo.vespa.config.server.TestComponentRegistry)1 HandlerTest (com.yahoo.vespa.config.server.http.HandlerTest)1 SessionHandlerTest (com.yahoo.vespa.config.server.http.SessionHandlerTest)1 ModelFactoryRegistry (com.yahoo.vespa.config.server.modelfactory.ModelFactoryRegistry)1