Package com.dyn.client.v3.traffic.domain.RecordSet

Examples of com.dyn.client.v3.traffic.domain.RecordSet.Value


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

   @Test(dependsOnMethods = "testCreateZone")
   public void testPublishZone() {
      Zone zone = api().publish(fqdn);
      checkNotNull(zone, "unable to publish zone %s", fqdn);
      getAnonymousLogger().info("published zone: " + zone);
      checkZone(zone);
   }
View Full Code Here


   HttpRedirect redirect = HttpRedirect.builder().zone(fqdn).fqdn(redirectName).code(302).keepUri(true).url("http://foo.com/").build();
   String unknownRedirectName = "nodirect." + fqdn;

   @Test
   private void testCreatePublishZone() throws Exception {
      Zone zone = api.getZoneApi().get(fqdn);
      if (zone == null) {
         Job job = api.getZoneApi().scheduleCreateWithContact(fqdn, contact);
         checkNotNull(job, "unable to create zone %s", fqdn);
         getAnonymousLogger().info("created zone: " + job);
         assertEquals(job.getStatus(), Status.SUCCESS);
View Full Code Here

   public void testCreateAndPublishHttpRedirect() throws Exception {
      Thread.sleep(3000); // FIXME - figure out delays
      Job job = api().scheduleCreate(redirect);
      assertEquals(job.getStatus(), Status.SUCCESS);
      assertEquals(api.getJob(job.getId()), job);
      Zone zone = api.getZoneApi().publish(fqdn);
      checkZone(zone);
      getAndVerifyRedirect(redirectName, 302, "Y", "http://foo.com/");
   }
View Full Code Here

      Thread.sleep(3000); // FIXME - figure out delays

      Job job = api().scheduleUpdate(HttpRedirect.builder().zone(fqdn).fqdn(redirectName).code(301).keepUri(false).url("http://bar.com/").build());
      assertEquals(job.getStatus(), Status.SUCCESS);
      assertEquals(api.getJob(job.getId()), job);
      Zone zone = api.getZoneApi().publish(fqdn);
      checkZone(zone);
      getAndVerifyRedirect(redirectName, 301, "N", "http://bar.com/");
   }
View Full Code Here

      Job job = zoneApi().scheduleCreateWithContact(zoneFQDN, contact);
      checkNotNull(job, "unable to create zone %s", zoneFQDN);
      getAnonymousLogger().info("created zone: " + job);
      assertEquals(job.getStatus(), Status.SUCCESS);
      assertEquals(api.getJob(job.getId()), job);
      Zone zone = zoneApi().publish(zoneFQDN);
      checkNotNull(zone, "unable to publish zone %s", zoneFQDN);
      getAnonymousLogger().info("published zone: " + zone);
   }
View Full Code Here

         }
      }
   }

   private Record<AAAAData> checkAAAARecord(Record<AAAAData> record) {
      AAAAData rdata = record.getRData();
      checkNotNull(rdata.getAddress(), "rdata.address cannot be null for AAAARecord: %s", record);
      return record;
   }
View Full Code Here

      checkNotNull(rdata.getAddress(), "rdata.address cannot be null for AAAARecord: %s", record);
      return record;
   }

   private Record<AData> checkARecord(Record<AData> record) {
      AData rdata = record.getRData();
      checkNotNull(rdata.getAddress(), "rdata.address cannot be null for ARecord: %s", record);
      return record;
   }
View Full Code Here

      checkNotNull(rdata.getAddress(), "rdata.address cannot be null for ARecord: %s", record);
      return record;
   }

   private Record<CNAMEData> checkCNAMERecord(Record<CNAMEData> record) {
      CNAMEData rdata = record.getRData();
      checkNotNull(rdata.getCname(), "rdata.cname cannot be null for CNAMERecord: %s", record);
      return record;
   }
View Full Code Here

      checkNotNull(rdata.getCname(), "rdata.cname cannot be null for CNAMERecord: %s", record);
      return record;
   }

   private Record<MXData> checkMXRecord(Record<MXData> record) {
      MXData rdata = record.getRData();
      checkNotNull(rdata.getPreference(), "rdata.preference cannot be null for MXRecord: %s", record);
      checkNotNull(rdata.getExchange(), "rdata.exchange cannot be null for MXRecord: %s", record);
      return record;
   }
View Full Code Here

      checkNotNull(rdata.getExchange(), "rdata.exchange cannot be null for MXRecord: %s", record);
      return record;
   }

   private Record<NSData> checkNSRecord(Record<NSData> record) {
      NSData rdata = record.getRData();
      checkNotNull(rdata.getNsdname(), "rdata.nsdname cannot be null for NSRecord: %s", record);
      return record;
   }
View Full Code Here

TOP

Related Classes of com.dyn.client.v3.traffic.domain.RecordSet.Value

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.