Search in sources :

Example 1 with ZoneRegistryMock

use of com.yahoo.vespa.hosted.controller.ZoneRegistryMock in project vespa by vespa-engine.

the class ZoneApiTest method before.

@Before
public void before() {
    ZoneRegistryMock zoneRegistry = (ZoneRegistryMock) container.components().getComponent(ZoneRegistryMock.class.getName());
    zoneRegistry.setDefaultRegionForEnvironment(Environment.dev, RegionName.from("us-north-2")).setZones(zones);
    this.tester = new ContainerControllerTester(container, responseFiles);
}
Also used : ContainerControllerTester(com.yahoo.vespa.hosted.controller.restapi.ContainerControllerTester) ZoneRegistryMock(com.yahoo.vespa.hosted.controller.ZoneRegistryMock) Before(org.junit.Before)

Example 2 with ZoneRegistryMock

use of com.yahoo.vespa.hosted.controller.ZoneRegistryMock in project vespa by vespa-engine.

the class ZoneApiTest method before.

@Before
public void before() {
    ZoneRegistryMock zoneRegistry = (ZoneRegistryMock) container.components().getComponent(ZoneRegistryMock.class.getName());
    zoneRegistry.setDefaultRegionForEnvironment(Environment.dev, RegionName.from("us-north-2")).setZones(zones);
    this.tester = new ContainerControllerTester(container, responseFiles);
    this.proxy = (ConfigServerProxyMock) container.components().getComponent(ConfigServerProxyMock.class.getName());
    addUserToHostedOperatorRole(HOSTED_VESPA_OPERATOR);
}
Also used : ContainerControllerTester(com.yahoo.vespa.hosted.controller.restapi.ContainerControllerTester) ConfigServerProxyMock(com.yahoo.vespa.hosted.controller.ConfigServerProxyMock) ZoneRegistryMock(com.yahoo.vespa.hosted.controller.ZoneRegistryMock) Before(org.junit.Before)

Aggregations

ZoneRegistryMock (com.yahoo.vespa.hosted.controller.ZoneRegistryMock)2 ContainerControllerTester (com.yahoo.vespa.hosted.controller.restapi.ContainerControllerTester)2 Before (org.junit.Before)2 ConfigServerProxyMock (com.yahoo.vespa.hosted.controller.ConfigServerProxyMock)1