Search in sources :

Example 1 with MockOrganization

use of com.yahoo.vespa.hosted.controller.api.integration.organization.MockOrganization in project vespa by vespa-engine.

the class ControllerTester method createController.

private static Controller createController(ControllerDb db, CuratorDb curator, RotationsConfig rotationsConfig, ConfigServerClientMock configServerClientMock, ManualClock clock, GitHubMock gitHubClientMock, ZoneRegistryMock zoneRegistryMock, AthenzDbMock athensDb, MemoryNameService nameService, ArtifactRepository artifactRepository, EntityService entityService) {
    Controller controller = new Controller(db, curator, rotationsConfig, gitHubClientMock, entityService, new MockOrganization(clock), new MemoryGlobalRoutingService(), zoneRegistryMock, configServerClientMock, new NodeRepositoryClientMock(), new MockMetricsService(), nameService, new MockRoutingGenerator(), new ChefMock(), clock, new AthenzClientFactoryMock(athensDb), artifactRepository);
    controller.updateVersionStatus(VersionStatus.compute(controller));
    return controller;
}
Also used : MockMetricsService(com.yahoo.vespa.hosted.controller.integration.MockMetricsService) ChefMock(com.yahoo.vespa.hosted.controller.api.integration.chef.ChefMock) AthenzClientFactoryMock(com.yahoo.vespa.hosted.controller.athenz.mock.AthenzClientFactoryMock) MockOrganization(com.yahoo.vespa.hosted.controller.api.integration.organization.MockOrganization) MemoryGlobalRoutingService(com.yahoo.vespa.hosted.controller.api.integration.routing.MemoryGlobalRoutingService) MockRoutingGenerator(com.yahoo.vespa.hosted.controller.routing.MockRoutingGenerator)

Aggregations

ChefMock (com.yahoo.vespa.hosted.controller.api.integration.chef.ChefMock)1 MockOrganization (com.yahoo.vespa.hosted.controller.api.integration.organization.MockOrganization)1 MemoryGlobalRoutingService (com.yahoo.vespa.hosted.controller.api.integration.routing.MemoryGlobalRoutingService)1 AthenzClientFactoryMock (com.yahoo.vespa.hosted.controller.athenz.mock.AthenzClientFactoryMock)1 MockMetricsService (com.yahoo.vespa.hosted.controller.integration.MockMetricsService)1 MockRoutingGenerator (com.yahoo.vespa.hosted.controller.routing.MockRoutingGenerator)1