Search in sources :

Example 1 with Applications

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);
}
Also used : Applications(com.yahoo.cloud.config.LbServicesConfig.Tenants.Applications) LbServicesConfig(com.yahoo.cloud.config.LbServicesConfig) Test(org.junit.Test)

Aggregations

LbServicesConfig (com.yahoo.cloud.config.LbServicesConfig)1 Applications (com.yahoo.cloud.config.LbServicesConfig.Tenants.Applications)1 Test (org.junit.Test)1