use of com.yahoo.cloud.config.LbServicesConfig.Tenants.Applications in project vespa by vespa-engine.
the class SuperModelControllerTest method test_lb_config_simple.
@Test
public void test_lb_config_simple() {
LbServicesConfig.Builder lb = new LbServicesConfig.Builder();
handler.getSuperModel().getConfig(lb);
LbServicesConfig lbc = new LbServicesConfig(lb);
assertThat(lbc.tenants().size(), is(1));
assertThat(lbc.tenants("a").applications().size(), is(1));
Applications app = lbc.tenants("a").applications("foo:prod:default:default");
assertTrue(app.hosts().size() > 0);
}
Aggregations