Search in sources :

Example 1 with ConfigServerProxyMock

use of com.yahoo.vespa.hosted.controller.ConfigServerProxyMock 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

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