Package org.jclouds.ultradns.ws.domain

Examples of org.jclouds.ultradns.ws.domain.PoolRecordSpec


      } else {
         recordId = api(zoneName).addRecordToPoolWithTTL(rdata, poolId, ttl);
      }
      getAnonymousLogger().info("created " + type + " record: " + recordId);
      TrafficControllerPoolRecordDetail record = checkPoolRecordConsistent(zoneName, getRecordById(recordId).get());
      PoolRecordSpec recordSpec = checkPoolRecordSpec(api(zoneName).getRecordSpec(recordId));
      assertEquals(record.getRecord(), TrafficControllerPoolRecord.create(type, rdata));
      assertEquals(record.getWeight(), weight.or(2).intValue());
      assertEquals(recordSpec.getTTL(), ttl);
      return record;
   }
View Full Code Here


      cname2 = addRecordToPool("www.bar.com.", "CNAME", 30, Optional.<Integer> absent()).getId();
   }

   @Test(dependsOnMethods = "addCNAMERecordsToPool")
   public void testUpdateRecord() {
      PoolRecordSpec spec = api(zoneName).getRecordSpec(cname2);
      UpdatePoolRecord update = UpdatePoolRecord.builder().from(spec)
                                                .rdata("www.baz.com.")
                                                .weight(98)
                                                .ttl(200).build();

      api(zoneName).updateRecord(cname2, update);

      TrafficControllerPoolRecordDetail record = getRecordById(cname2).get();
      assertEquals(record.getRecord().getRData(), "www.baz.com.");

      spec = api(zoneName).getRecordSpec(cname2);
      assertEquals(spec.getWeight(), 98);
      assertEquals(spec.getTTL(), 200);
   }
View Full Code Here

TOP

Related Classes of org.jclouds.ultradns.ws.domain.PoolRecordSpec

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.