protected void startFabricServices() throws Throwable { this.log(Level.INFO, "Fabric services starting ..."); HostInitPhotonModelServiceConfig.startServices(this); this.log(Level.INFO, "Fabric services started."); }
allServices.addAll(HostInitUpgradeServiceConfig.SERVICES_METADATA); allServices.addAll(HostInitKubernetesAdapterServiceConfig.SERVICES_METADATA); allServices.addAll(HostInitPhotonModelServiceConfig.getServiceMetadata()); allServices.addAll(HostInitRegistryAdapterServiceConfig.SERVICES_METADATA);
private static void startServices(ServiceHost serviceHost) throws Throwable { HostInitPhotonModelServiceConfig.startServices(serviceHost); HostInitTestDcpServicesConfig.startServices(serviceHost); HostInitCommonServiceConfig.startServices(serviceHost); HostInitComputeServicesConfig.startServices(serviceHost, false); }
protected void startServices(VerificationHost host) throws Throwable { HostInitCommonServiceConfig.startServices(host); HostInitPhotonModelServiceConfig.startServices(host); HostInitComputeServicesConfig.startServices(host, true); HostInitAuthServiceConfig.startServices(host); HostInitUpgradeServiceConfig.startServices(host); }
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 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); }
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); }
host.addPrivilegedService(ContainerHostDataCollectionService.class); HostInitTestDcpServicesConfig.startServices(host); HostInitPhotonModelServiceConfig.startServices(host); HostInitCommonServiceConfig.startServices(host); HostInitComputeServicesConfig.startServices(host, false);
@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); }
HostInitPhotonModelServiceConfig.startServices(host); HostInitComputeServicesConfig.startServices(host, true);