.getBody(ComputeService.ComputeStateWithDescription.class); if (hostState.description == null) { hostState.description = new ComputeDescription();
ComputeDescription cDesc = new ComputeDescription(); cDesc.name = UUID.randomUUID().toString(); cDesc.statsAdapterReference = UriUtils.buildUri(this.host, MockStatsAdapter.SELF_LINK);
UriUtils.buildUri(this.host, ResourcePoolService.FACTORY_LINK)); ComputeDescriptionService.ComputeDescription computeDescription = new ComputeDescriptionService.ComputeDescription(); computeDescription.id = UUID.randomUUID().toString(); computeDescription.documentSelfLink = computeDescription.id;
ComputeDescription cDesc = new ComputeDescription(); cDesc.name = UUID.randomUUID().toString(); cDesc.statsAdapterReference = UriUtils.buildUri(this.host, MockStatsAdapter.SELF_LINK);
ComputeDescription cDesc = new ComputeDescription(); cDesc.name = rpState.name; cDesc.statsAdapterReference = UriUtils.buildUri(this.host, MockStatsAdapter.SELF_LINK);
ComputeDescription cDesc = new ComputeDescription(); cDesc.name = UUID.randomUUID().toString(); cDesc.statsAdapterReference = UriUtils.buildUri(this.host, MockStatsAdapter.SELF_LINK);
ResourcePoolService.FACTORY_LINK, rpState, ResourcePoolState.class); ComputeDescription cDesc = new ComputeDescription(); cDesc.name = rpState.name; cDesc.statsAdapterReference = UriUtils.buildUri(this.host, MockStatsAdapter.SELF_LINK);
ResourcePoolState.class); ComputeDescription desc = new ComputeDescription(); desc.name = rpState.name; desc.statsAdapterReference = UriUtils.buildUri(this.host, MockStatsAdapter.SELF_LINK);
ResourcePoolState.class); ComputeDescription desc = new ComputeDescription(); desc.name = rpState.name; desc.statsAdapterReferences = Collections
this.test.patchServiceSynchronously(endpoint.documentSelfLink, endpoint); ComputeDescription cd = new ComputeDescription(); if (request.endpointProperties.containsKey(EndpointConfigRequest.ZONE_KEY)) { cd.zoneId = request.endpointProperties.get(EndpointConfigRequest.ZONE_KEY);
.getBody(ComputeService.ComputeStateWithDescription.class); if (hostState.description == null) { hostState.description = new ComputeDescription();
@Test public void testDelete() throws Throwable { ComputeDescription computeDescription = doPost(new ComputeDescription(), ComputeDescriptionService.FACTORY_LINK); DeploymentPolicy deploymentPolicy = doPost(createDeploymentPolicy(), DeploymentPolicyService.FACTORY_LINK);
host.getTestContext().await(); ComputeDescription computeDescription = doPost(host, new ComputeDescription(), ComputeDescriptionService.FACTORY_LINK);
private static ComputeService.ComputeState createParentCompute( BaseModelTest test, String resourcePool, String zoneId) throws Throwable { ComputeDescriptionService.ComputeDescription cd = new ComputeDescriptionService.ComputeDescription(); cd.bootAdapterReference = new URI("http://bootAdapterReference"); cd.powerAdapterReference = new URI("http://powerAdapterReference");
host.getTestContext().await(); ComputeDescription computeDescription = doPost(host, new ComputeDescription(), ComputeDescriptionService.FACTORY_LINK); AuthCredentialsServiceState credentials = doPost(host,
containerListBody.containerHostLink = COMPUTE_HOST_LINK; ComputeDescription computeDesc = new ComputeDescription(); computeDesc = doPost(computeDesc, ComputeDescriptionService.FACTORY_LINK);
logFine("Default docker compute description exists."); } else { ComputeDescription desc = new ComputeDescription(); desc.environmentName = ComputeDescription.ENVIRONMENT_NAME_ON_PREMISE; desc.supportedChildren = new ArrayList<>(
volumeListCallback.containerHostLink = COMPUTE_HOST_LINK; ComputeDescription computeDesc = new ComputeDescription(); computeDesc = doPost(computeDesc, ComputeDescriptionService.FACTORY_LINK);
protected void createParentComputeState() throws Throwable { waitForServiceAvailability(ComputeService.FACTORY_LINK); ComputeDescription computeDescription = new ComputeDescription(); computeDescription.customProperties = new HashMap<>(); computeDescription.id = UUID.randomUUID().toString(); String computeDescriptionLink = doPost(computeDescription, ComputeDescriptionService.FACTORY_LINK).documentSelfLink; ComputeState computeState = new ComputeState(); computeState.id = "testParentComputeState"; computeState.descriptionLink = computeDescriptionLink; computeState.customProperties = new HashMap<>(); computeState.customProperties.put( ComputeConstants.HOST_AUTH_CREDENTIALS_PROP_NAME, testDockerCredentialsLink); computeState.address = dockerUri.getHost(); computeState.customProperties.put( ContainerHostService.DOCKER_HOST_SCHEME_PROP_NAME, String.valueOf(dockerUri.getScheme())); computeState.customProperties.put( ContainerHostService.DOCKER_HOST_PORT_PROP_NAME, String.valueOf(dockerUri.getPort())); computeState.customProperties.put( ContainerHostService.DOCKER_HOST_PATH_PROP_NAME, String.valueOf(dockerUri.getPath())); computeState.customProperties.put( ContainerHostService.HOST_DOCKER_ADAPTER_TYPE_PROP_NAME, ContainerHostService.DockerAdapterType.API.name()); computeState = doPost(computeState, ComputeService.FACTORY_LINK); this.parentComputeStateLink = computeState.documentSelfLink; }