Package org.jclouds.ultradns.ws.domain

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


      assertFalse(getPoolById(aPoolId).isPresent());
   }

   private DirectionalPoolRecordDetail checkRecordConsistent(String dname, String recordId,
         DirectionalPoolRecord record, DirectionalGroup group) {
      DirectionalPoolRecordDetail recordDetail = getRecordByDNameAndId(dname, recordId).get();
      checkDirectionalRecordDetail(recordDetail);
      IdAndName rGroup = recordDetail.getGeolocationGroup().get();
      assertEquals(rGroup.getName(), group.getName());
      // TODO: look up each key with all and do a comparison
      if (!group.containsValue("all"))
         assertEquals(groupApi().get(rGroup.getId()), group);
      assertFalse(recordDetail.getGroup().isPresent());
      assertFalse(recordDetail.getSourceIpGroup().isPresent());
      assertEquals(recordDetail.getName(), dname);
      assertEquals(recordDetail.getZoneName(), zoneName);
      assertEquals(recordDetail.getRecord(), record);
      return recordDetail;
   }
View Full Code Here


      return recordDetail;
   }

   private DirectionalPoolRecordDetail checkRecordConsistentInNonConfiguredGroup(String dname, String recordId,
         DirectionalPoolRecord record) {
      DirectionalPoolRecordDetail recordDetail = getRecordByDNameAndId(dname, recordId).get();
      checkDirectionalRecordDetail(recordDetail);
      IdAndName rGroup = recordDetail.getGroup().get();
      assertEquals(rGroup.getName(), "All Non-Configured Regions");
      DirectionalGroup allNonConfigured = groupApi().get(rGroup.getId());
      assertEquals(allNonConfigured.getName(), "All Non-Configured Regions");
      assertEquals(allNonConfigured.size(), 323);
      assertFalse(recordDetail.getGeolocationGroup().isPresent());
      assertFalse(recordDetail.getSourceIpGroup().isPresent());
      assertEquals(recordDetail.getZoneName(), zoneName);
      assertEquals(recordDetail.getRecord(), record);
      return recordDetail;
   }
View Full Code Here

TOP

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

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.