Search in sources :

Example 1 with Provisioner

use of com.yahoo.config.provision.Provisioner in project vespa by vespa-engine.

the class ApplicationRepositoryTest method setup.

@Before
public void setup() {
    Curator curator = new MockCurator();
    Tenants tenants = new Tenants(new TestComponentRegistry.Builder().curator(curator).build());
    tenants.addTenant(tenantName);
    tenant = tenants.getTenant(tenantName);
    Provisioner provisioner = new SessionHandlerTest.MockProvisioner();
    applicationRepository = new ApplicationRepository(tenants, provisioner, clock);
    timeoutBudget = new TimeoutBudget(clock, Duration.ofSeconds(60));
}
Also used : Provisioner(com.yahoo.config.provision.Provisioner) Tenants(com.yahoo.vespa.config.server.tenant.Tenants) Curator(com.yahoo.vespa.curator.Curator) MockCurator(com.yahoo.vespa.curator.mock.MockCurator) MockCurator(com.yahoo.vespa.curator.mock.MockCurator) Before(org.junit.Before)

Example 2 with Provisioner

use of com.yahoo.config.provision.Provisioner in project vespa by vespa-engine.

the class HostProvisionerProvider method withProvisioner.

// for testing
public static HostProvisionerProvider withProvisioner(Provisioner provisioner) {
    ComponentRegistry<Provisioner> registry = new ComponentRegistry<>();
    registry.register(ComponentId.createAnonymousComponentId("foobar"), provisioner);
    return new HostProvisionerProvider(registry, new ConfigserverConfig(new ConfigserverConfig.Builder().hostedVespa(true)));
}
Also used : ConfigserverConfig(com.yahoo.cloud.config.ConfigserverConfig) ComponentRegistry(com.yahoo.component.provider.ComponentRegistry) Provisioner(com.yahoo.config.provision.Provisioner)

Aggregations

Provisioner (com.yahoo.config.provision.Provisioner)2 ConfigserverConfig (com.yahoo.cloud.config.ConfigserverConfig)1 ComponentRegistry (com.yahoo.component.provider.ComponentRegistry)1 Tenants (com.yahoo.vespa.config.server.tenant.Tenants)1 Curator (com.yahoo.vespa.curator.Curator)1 MockCurator (com.yahoo.vespa.curator.mock.MockCurator)1 Before (org.junit.Before)1