private static void startServices(ServiceHost serviceHost) throws Throwable { HostInitPhotonModelServiceConfig.startServices(serviceHost); HostInitTestDcpServicesConfig.startServices(serviceHost); HostInitCommonServiceConfig.startServices(serviceHost); HostInitComputeServicesConfig.startServices(serviceHost, false); }
public static void startServices(ServiceHost host, boolean startMockContainerHostService) { initCompositeComponentRegistry(); startServices(host, ContainerFactoryService.class, ContainerDescriptionFactoryService.class, FavoriteImagePopulateInEmbeddedService.class); startServiceFactories(host, CaSigningCertService.class, GroupResourcePlacementService.class, KubernetesEntityDataCollection.class, FavoriteImagePopulateFlagService.class); startServices(host, ContainerHostService.class);
@BeforeClass public static void setUp() { HostInitComputeServicesConfig.initCompositeComponentRegistry(); }
@Before public void beforeForCompositeTemplateUtilTest() throws Throwable { HostInitComputeServicesConfig.initCompositeComponentRegistry(); }
private static void startCoreServices(ServiceHost serviceHost) throws Throwable { HostInitPhotonModelServiceConfig.startServices(serviceHost); HostInitCommonServiceConfig.startServices(serviceHost); HostInitComputeServicesConfig.startServices(serviceHost, true); HostInitRequestServicesConfig.startServices(serviceHost); HostInitDockerAdapterServiceConfig.startServices(serviceHost, true); }
@Before public void beforeForKubernetesUtilTest() throws Throwable { HostInitComputeServicesConfig.initCompositeComponentRegistry(); }
protected void startServices(VerificationHost host) throws Throwable { HostInitCommonServiceConfig.startServices(host); HostInitPhotonModelServiceConfig.startServices(host); HostInitComputeServicesConfig.startServices(host, true); HostInitAuthServiceConfig.startServices(host); HostInitUpgradeServiceConfig.startServices(host); }
@Before public void setUp() throws Throwable { // start services HostInitPhotonModelServiceConfig.startServices(host); HostInitComputeServicesConfig.startServices(host, true); // wait for needed services waitForServiceAvailability(ResourcePoolService.FACTORY_LINK); waitForServiceAvailability(ComputeService.FACTORY_LINK); defaultPlacementZone = createPlacementZone(DEFAULT_TEST_PLACEMENT_ZONE_NAME, false); }
HostInitComputeServicesConfig.startServices(host, false); HostInitImageServicesConfig.startServices(host); HostInitRegistryAdapterServiceConfig.startServices(host);
protected void startServices(VerificationHost host) throws Throwable { HostInitCommonServiceConfig.startServices(host); HostInitPhotonModelServiceConfig.startServices(host); HostInitComputeServicesConfig.startServices(host, true); HostInitAuthServiceConfig.startServices(host); host.registerForServiceAvailability(AuthBootstrapService.startTask(host), true, AuthBootstrapService.FACTORY_LINK); }
@Before public void setUp() throws Throwable { // start services HostInitPhotonModelServiceConfig.startServices(host); HostInitComputeServicesConfig.startServices(host, true); // wait for needed services waitForServiceAvailability(ResourcePoolService.FACTORY_LINK); waitForServiceAvailability(ComputeService.FACTORY_LINK); this.defaultPlacementZone = createPlacementZone(DEFAULT_TEST_PLACEMENT_ZONE_NAME); }
protected void startServices(VerificationHost host) throws Throwable { HostInitCommonServiceConfig.startServices(host); HostInitPhotonModelServiceConfig.startServices(host); HostInitComputeServicesConfig.startServices(host, true); HostInitAuthServiceConfig.startServices(host); HostInitHarborServices.startServices(host, true); host.registerForServiceAvailability(AuthBootstrapService.startTask(host), true, AuthBootstrapService.FACTORY_LINK); }
/** * Start all services required to support management of infrastructure and applications. */ protected void startManagementServices() throws Throwable { this.log(Level.INFO, "Management service starting ..."); registerForServiceAvailability(CaSigningCertService.startTask(this), true, CaSigningCertService.FACTORY_LINK); HostInitComputeServicesConfig.startServices(this, false); HostInitComputeBackgroundServicesConfig.startServices(this); HostInitRequestServicesConfig.startServices(this); HostInitImageServicesConfig.startServices(this); HostInitUiServicesConfig.startServices(this); HostInitHarborServices.startServices(this, startMockHostAdapterInstance); HostInitDockerAdapterServiceConfig.startServices(this, startMockHostAdapterInstance); HostInitKubernetesAdapterServiceConfig.startServices(this, startMockHostAdapterInstance); HostInitRegistryAdapterServiceConfig.startServices(this); this.log(Level.INFO, "Management services started."); }
HostInitPhotonModelServiceConfig.startServices(host); HostInitCommonServiceConfig.startServices(host); HostInitComputeServicesConfig.startServices(host, false); waitForServiceAvailability(ComputeInitialBootService.SELF_LINK); waitForInitialBootServiceToBeSelfStopped(ComputeInitialBootService.SELF_LINK);
@Before @Override public void beforeForComputeBase() throws Throwable { DeploymentProfileConfig.getInstance().setTest(false); HostInitPhotonModelServiceConfig.startServices(host); HostInitTestDcpServicesConfig.startServices(host); HostInitCommonServiceConfig.startServices(host); HostInitComputeServicesConfig.startServices(host, true); HostInitKubernetesAdapterServiceConfig.startServices(host, true); waitForServiceAvailability(ComputeInitialBootService.SELF_LINK); waitForInitialBootServiceToBeSelfStopped(ComputeInitialBootService.SELF_LINK); waitForServiceAvailability(PodFactoryService.SELF_LINK); waitForServiceAvailability(KubernetesAdapterService.SELF_LINK); }
@Before public void setUpMockKubernetesHost() throws Throwable { ServiceHost.Arguments args = new ServiceHost.Arguments(); args.sandbox = null; args.port = 0; mockKubernetesHost = createHost(); mockKubernetesHost.setMaintenanceIntervalMicros(TimeUnit.MILLISECONDS .toMicros(MAINTENANCE_INTERVAL_MILLIS)); kubernetesUri = UriUtils.buildUri(mockKubernetesHost, KubernetesPathConstants.BASE_PATH); kubernetesFailingUri = UriUtils.buildUri(mockKubernetesHost, KubernetesPathConstants.BASE_FAILING_PATH); kubernetesCredentials = new AuthCredentialsServiceState(); kubernetesCredentials.type = AuthCredentialsType.Password.name(); kubernetesCredentials.userEmail = "test@admiral"; kubernetesCredentials.privateKey = "password"; HostInitTestDcpServicesConfig.startServices(host); HostInitPhotonModelServiceConfig.startServices(host); HostInitCommonServiceConfig.startServices(host); HostInitComputeServicesConfig.startServices(host, false); HostInitKubernetesAdapterServiceConfig.startServices(host, false); waitForInitialBootServiceToBeSelfStopped(ComputeInitialBootService.SELF_LINK); host.log("Using test kubernetes URI: %s", kubernetesUri); System.setProperty("dcp.management.container.shell.availability.retry", "0"); host.startService( Operation.createPost(UriUtils.buildUri(host, MockTaskFactoryService.SELF_LINK)), new MockTaskFactoryService()); }
protected void startServices(VerificationHost h) throws Throwable { h.registerForServiceAvailability(CaSigningCertService.startTask(h), true, CaSigningCertService.FACTORY_LINK); HostInitTestDcpServicesConfig.startServices(h); HostInitPhotonModelServiceConfig.startServices(h); HostInitCommonServiceConfig.startServices(h); HostInitComputeServicesConfig.startServices(h, true); HostInitRequestServicesConfig.startServices(h); HostInitDockerAdapterServiceConfig.startServices(h, true); HostInitKubernetesAdapterServiceConfig.startServices(h, true); for (String factoryLink : getFactoryServiceList()) { waitForServiceAvailability(factoryLink); } // Default services: waitForServiceAvailability(h, ResourceNamePrefixService.DEFAULT_RESOURCE_NAME_PREFIX_SELF_LINK); waitForServiceAvailability(h, DEFAULT_GROUP_RESOURCE_POLICY); waitForServiceAvailability(h, SystemContainerDescriptions.AGENT_CONTAINER_DESCRIPTION_LINK); waitForServiceAvailability(h, HostContainerListDataCollection.DEFAULT_HOST_CONTAINER_LIST_DATA_COLLECTION_LINK); waitForServiceAvailability(h, ContainerControlLoopService.CONTROL_LOOP_INFO_LINK); waitForServiceAvailability(ManagementUriParts.AUTH_CREDENTIALS_CA_LINK); waitForInitialBootServiceToBeSelfStopped(ComputeInitialBootService.SELF_LINK); waitForInitialBootServiceToBeSelfStopped(RequestInitialBootService.SELF_LINK); }
HostInitComputeServicesConfig.startServices(host, true);