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));
}
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)));
}
Aggregations