Package org.jclouds.vcloud.director.v1_5.domain.params

Examples of org.jclouds.vcloud.director.v1_5.domain.params.RelocateParams


            .httpRequestBuilder().build(),
         new VcloudHttpResponsePrimer()
            .xmlFilePayload("/vApp/deployTask.xml", VCloudDirectorMediaType.TASK)
            .httpResponseBuilder().build());

      DeployVAppParams params = DeployVAppParams.builder()
            .build();

    Task expected = deployTask();

    assertEquals(api.getVAppApi().deploy(vAppURI, params), expected);
View Full Code Here


            .httpRequestBuilder().build(),
         new VcloudHttpResponsePrimer()
            .xmlFilePayload("/vApp/recomposeVAppTask.xml", VCloudDirectorMediaType.TASK)
            .httpResponseBuilder().build());

      RecomposeVAppParams params = RecomposeVAppParams.builder()
            .build();

    Task expected = recomposeVAppTask();

    assertEquals(api.getVAppApi().recompose(vAppURI, params), expected);
View Full Code Here

            .httpRequestBuilder().build(),
         new VcloudHttpResponsePrimer()
            .xmlFilePayload("/vApp/relocateTask.xml", VCloudDirectorMediaType.TASK)
            .httpResponseBuilder().build());

      RelocateParams params = RelocateParams.builder()
            .build();

    Task expected = relocateTask();

    assertEquals(api.getVmApi().relocate(vmURI, params), expected);
View Full Code Here

            .httpRequestBuilder().build(),
         new VcloudHttpResponsePrimer()
            .xmlFilePayload("/vApp/relocateTask.xml", VCloudDirectorMediaType.TASK)
            .httpResponseBuilder().build());
    
      RelocateParams params = RelocateParams.builder()
            .build();
   
    Task expected = relocateTask();
   
    assertEquals(api.getVmApi().relocate(vmURI, params), expected);
View Full Code Here

   @Test(description = "POST /vApp/{id}/action/relocate", dependsOnMethods = { "testGetVm" })
   public void testRelocate() {
      // Relocate to the last of the available datastores
      QueryResultRecords records = adminContext.getApi().getQueryApi().queryAll("datastore");
      QueryResultRecordType datastore = Iterables.getLast(records.getRecords());
      RelocateParams params = RelocateParams.builder().datastore(Reference.builder().href(datastore.getHref()).build())
               .build();

      // The method under test
      Task relocate = vmApi.relocate(vmUrn, params);
      assertTrue(retryTaskSuccess.apply(relocate), String.format(TASK_COMPLETE_TIMELY, "relocate"));
View Full Code Here

            .httpRequestBuilder().build(),
         new VcloudHttpResponsePrimer()
            .xmlFilePayload("/vApp/relocateTask.xml", VCloudDirectorMediaType.TASK)
            .httpResponseBuilder().build());

      RelocateParams params = RelocateParams.builder()
            .build();

    Task expected = relocateTask();

    assertEquals(api.getVmApi().relocate(vmURI, params), expected);
View Full Code Here

   @Test(description = "POST /vApp/{id}/action/relocate", dependsOnMethods = { "testGetVm" })
   public void testRelocate() {
      // Relocate to the last of the available datastores
      QueryResultRecords records = adminContext.getApi().getQueryApi().queryAll("datastore");
      QueryResultRecordType datastore = Iterables.getLast(records.getRecords());
      RelocateParams params = RelocateParams.builder().datastore(Reference.builder().href(datastore.getHref()).build())
               .build();

      // The method under test
      Task relocate = vmApi.relocate(vmUrn, params);
      assertTrue(retryTaskSuccess.apply(relocate), String.format(TASK_COMPLETE_TIMELY, "relocate"));
View Full Code Here

            .httpRequestBuilder().build(),
         new VcloudHttpResponsePrimer()
            .xmlFilePayload("/vApp/relocateTask.xml", VCloudDirectorMediaType.TASK)
            .httpResponseBuilder().build());
    
      RelocateParams params = RelocateParams.builder()
            .build();
   
    Task expected = relocateTask();
   
    assertEquals(api.getVmApi().relocate(vmURI, params), expected);
View Full Code Here

   @Test(description = "POST /vApp/{id}/action/relocate", dependsOnMethods = { "testGetVm" })
   public void testRelocate() {
      // Relocate to the last of the available datastores
      QueryResultRecords records = adminContext.getApi().getQueryApi().queryAll("datastore");
      QueryResultRecordType datastore = Iterables.getLast(records.getRecords());
      RelocateParams params = RelocateParams.builder().datastore(Reference.builder().href(datastore.getHref()).build())
               .build();

      // The method under test
      Task relocate = vmApi.relocate(vmUrn, params);
      assertTrue(retryTaskSuccess.apply(relocate), String.format(TASK_COMPLETE_TIMELY, "relocate"));
View Full Code Here

            .httpRequestBuilder().build(),
         new VcloudHttpResponsePrimer()
            .xmlFilePayload("/vApp/relocateTask.xml", VCloudDirectorMediaType.TASK)
            .httpResponseBuilder().build());
    
      RelocateParams params = RelocateParams.builder()
            .build();
   
    Task expected = relocateTask();
   
    assertEquals(api.getVmApi().relocate(vmURI, params), expected);
View Full Code Here

TOP

Related Classes of org.jclouds.vcloud.director.v1_5.domain.params.RelocateParams

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.