Package org.jclouds.rackspace.clouddns.v1.domain

Examples of org.jclouds.rackspace.clouddns.v1.domain.Job$Error


      checkRecord(newRecord);
   }

   @Test(dependsOnMethods = { "testListByFQDNAndType", "testListByFQDN" })
   public void testDeleteRecord() {
      Job job = api(zoneFQDN).scheduleDelete(id);
      checkNotNull(job, "unable to delete record %s", id);
      getAnonymousLogger().info("deleted record: " + job);
      assertEquals(job.getStatus(), Status.SUCCESS);
      assertEquals(api.getJob(job.getId()), job);
      zoneApi().publish(zoneFQDN);
   }
View Full Code Here


   String fqdn = System.getProperty("user.name").replace('.', '-') + ".zone.dynecttest.jclouds.org";
   String contact = JcloudsVersion.get() + ".jclouds.org";

   @Test
   public void testCreateZone() {
      Job job = api().scheduleCreateWithContact(fqdn, contact);
      checkNotNull(job, "unable to create zone %s", fqdn);
      getAnonymousLogger().info("created zone: " + job);
      assertEquals(job.getStatus(), Status.SUCCESS);
      assertEquals(api.getJob(job.getId()), job);
   }
View Full Code Here

      checkZone(zone);
   }

   @Test(dependsOnMethods = "testPublishZone")
   public void testFreezeZone() {
      Job job = api().freeze(fqdn);
      assertEquals(job.getStatus(), Status.SUCCESS);
      assertEquals(api.getJob(job.getId()), job);
      // TODO: determine how to prove it is frozen
   }
View Full Code Here

      // TODO: determine how to prove it is frozen
   }

   @Test(dependsOnMethods = "testFreezeZone")
   public void testThawZone() {
      Job job = api().thaw(fqdn);
      assertEquals(job.getStatus(), Status.SUCCESS);
      assertEquals(api.getJob(job.getId()), job);
      // TODO: determine how to prove it is thawed
   }
View Full Code Here

      // TODO: determine how to prove it is thawed
   }

   @Test(dependsOnMethods = "testThawZone")
   public void testDeleteZoneChanges() {
      Job job = api().deleteChanges(fqdn);
      assertEquals(job.getStatus(), Status.SUCCESS);
      assertEquals(api.getJob(job.getId()), job);
   }
View Full Code Here

      assertEquals(api.getJob(job.getId()), job);
   }

   @Test(dependsOnMethods = "testDeleteZoneChanges")
   public void testDeleteZone() {
      Job job = api().delete(fqdn);
      assertEquals(job.getStatus(), Status.SUCCESS);
      assertEquals(api.getJob(job.getId()), job);
      assertNull(api().get(fqdn), "job " + job + " didn't delete zone" + fqdn);
   }
View Full Code Here

*/
@Test(groups = "unit")
public class CloudDNSApiExpectTest extends BaseCloudDNSApiExpectTest<CloudDNSApi> {
   public void testGetJobDomainExport() {
      URI endpoint = URI.create("https://dns.api.rackspacecloud.com/v1.0/123123/status/bfbd6ec8-5d4c-49f8-97b5-aa5bfd3e95a4?showDetails=true");
      CloudDNSApi api = requestsSendResponses(
            rackspaceAuthWithUsernameAndApiKey,
            responseWithAccess,
            authenticatedGET().endpoint(endpoint).build(),
            HttpResponse.builder().statusCode(200).payload(payloadFromResource("/job.json")).build());

      Job<Domain> job = api.getJob("bfbd6ec8-5d4c-49f8-97b5-aa5bfd3e95a4");
      assertEquals(job.getStatus(), Job.Status.RUNNING);
      assertFalse(job.getResource().isPresent());
   }
View Full Code Here

   public static class Builder extends BaseProviderMetadata.Builder {

      protected Builder(){
         id("rackspace-clouddns-us")
         .name("Rackspace Cloud DNS US")
         .apiMetadata(new CloudDNSApiMetadata().toBuilder()
                  .defaultEndpoint("https://identity.api.rackspacecloud.com/v2.0/")
                  .build())
         .homepage(URI.create("http://www.rackspace.com/cloud/public/dns/"))
         .console(URI.create("https://mycloud.rackspace.com"))
         .linkedServices("rackspace-cloudidentity", "rackspace-cloudservers-us", "cloudfiles-us", "rackspace-cloudblockstorage-us", "rackspace-cloudloadbalancers-us")
View Full Code Here

   public static class Builder extends BaseProviderMetadata.Builder {

      protected Builder(){
         id("rackspace-clouddns-uk")
         .name("Rackspace Cloud DNS UK")
         .apiMetadata(new CloudDNSApiMetadata().toBuilder()
                  .defaultEndpoint("https://lon.identity.api.rackspacecloud.com/v2.0/")
                  .build())
         .homepage(URI.create("http://www.rackspace.com/cloud/public/dns/"))
         .console(URI.create("https://mycloud.rackspace.com"))
         .linkedServices("rackspace-cloudidentity", "rackspace-cloudservers-uk", "cloudfiles-uk", "rackspace-cloudblockstorage-uk", "rackspace-cloudloadbalancers-uk")
View Full Code Here

   public static class Builder extends BaseProviderMetadata.Builder {

      protected Builder() {
         id("rackspace-clouddns-uk")
         .name("Rackspace Cloud DNS UK")
         .apiMetadata(new CloudDNSApiMetadata().toBuilder()
                  .defaultEndpoint("https://lon.identity.api.rackspacecloud.com/v2.0/")
                  .build())
         .homepage(URI.create("http://www.rackspace.com/cloud/public/dns/"))
         .console(URI.create("https://mycloud.rackspace.com"))
         .linkedServices("rackspace-cloudidentity", "rackspace-cloudservers-uk", "cloudfiles-uk", "rackspace-cloudblockstorage-uk", "rackspace-cloudloadbalancers-uk")
View Full Code Here

TOP

Related Classes of org.jclouds.rackspace.clouddns.v1.domain.Job$Error

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.