Package org.jclouds.rackspace.clouddns.v1.features

Examples of org.jclouds.rackspace.clouddns.v1.features.RecordApiLiveTest


*/
@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

*/
@Test(groups = "unit", testName = "CloudDNSUKProviderTest")
public class CloudDNSUKProviderTest extends BaseProviderMetadataTest {

   public CloudDNSUKProviderTest() {
      super(new CloudDNSUKProviderMetadata(), new CloudDNSApiMetadata());
   }
View Full Code Here

*/
@Test(groups = "unit", testName = "CloudDNSUSProviderTest")
public class CloudDNSUSProviderTest extends BaseProviderMetadataTest {

   public CloudDNSUSProviderTest() {
      super(new CloudDNSUSProviderMetadata(), new CloudDNSApiMetadata());
   }
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

      System.out.println("serverIPv6 = " + serverIPv6);
   }

   @Test(dependsOnMethods = "testCreateServer")
   public void testCreateDomain() throws Exception {
      CreateDomain createDomain = CreateDomain.builder().name(JCLOUDS_EXAMPLE).email("jclouds@" + JCLOUDS_EXAMPLE)
            .ttl(60000).build();

      Iterable<CreateDomain> createDomains = ImmutableList.of(createDomain);
      Domain domain = awaitComplete(api, api.getDomainApi().create(createDomains)).iterator().next();
View Full Code Here

   private String srvRecordId;
   private String mxRecordId;

   @Test
   public void testCreateDomain() throws Exception {
      CreateDomain createDomain = CreateDomain.builder()
            .name(JCLOUDS_EXAMPLE)
            .email("jclouds@" + JCLOUDS_EXAMPLE)
            .ttl(60000)
            .build();
View Full Code Here

            .comment("Hello test subdomain")
            .build();
     
      List<CreateSubdomain> createSubdomains = ImmutableList.of(createSubdomain1, createSubdomain2);

      CreateDomain createDomain1 = CreateDomain.builder()
            .name(JCLOUDS_EXAMPLE)
            .email("jclouds@" + JCLOUDS_EXAMPLE)
            .ttl(600000)
            .comment("Hello Domain")
            .subdomains(createSubdomains)
            .records(createRecords)
            .build();

      CreateDomain createDomain2 = CreateDomain.builder()
            .name("x" + JCLOUDS_EXAMPLE)
            .email("jclouds@" + JCLOUDS_EXAMPLE)
            .ttl(600000)
            .comment("Hello Domain")
            .build();
View Full Code Here

TOP

Related Classes of org.jclouds.rackspace.clouddns.v1.features.RecordApiLiveTest

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.