use of com.yahoo.vespa.model.container.component.chain.ChainedComponent in project vespa by vespa-engine.
the class DomProviderBuilderTest method testCertificateConfig_noProxy.
@Test
public void testCertificateConfig_noProxy() {
provider = new DomProviderBuilder(new HashMap<String, ComponentsBuilder.ComponentType>()).doBuild(root, noProxy);
ChainedComponent providerSearcher = provider.getInnerComponents().iterator().next();
assertThat(providerSearcher, instanceOf(HttpProviderSearcher.class));
ProviderConfig.Builder providerBuilder = new ProviderConfig.Builder();
((HttpProvider) provider).getConfig(providerBuilder);
ProviderConfig providerConfig = new ProviderConfig(providerBuilder);
assertThat(providerConfig.yca().applicationId(), is("my-app"));
assertThat(providerConfig.yca().useProxy(), is(false));
}
use of com.yahoo.vespa.model.container.component.chain.ChainedComponent in project vespa by vespa-engine.
the class ProcessingChainsTest method testProcessingChainConfiguration.
@Test
public void testProcessingChainConfiguration() {
ProcessingChain defaultChain = processingChains.allChains().getComponent("default");
assertEquals("default", defaultChain.getId().stringValue());
assertEquals(1, defaultChain.getInnerComponents().size());
Collection<ChainedComponent<?>> outerProcessors = processingChains.getComponentGroup().getComponents();
assertEquals(1, outerProcessors.size());
assertEquals("processor1", outerProcessors.iterator().next().getComponentId().toString());
Collection<Processor> innerProcessors = defaultChain.getInnerComponents();
assertEquals("processor2", innerProcessors.iterator().next().getComponentId().toString());
}
Aggregations