Package org.jclouds.ultradns.ws.domain

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


      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


   public void testAddRecordIntoGeoGroup() {
      String geoGroupId = getRecordByDNameAndId(dname, cnameCanary).get().getGeolocationGroup().get().getId();
      cname2Canary = api(zoneName).addRecordIntoExistingGroup(cnamePoolId, cname2RecordCanary, geoGroupId);
      getAnonymousLogger().info("created CNAME record in ipv4 pool: " + cname2Canary);

      DirectionalPoolRecordDetail detail =
            checkRecordConsistentInNonConfiguredGroup(dname, cname2Canary, cname2RecordCanary);
      assertEquals(detail.getGroup().get().getId(), geoGroupId);
   }
View Full Code Here

      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

   /**
    * gets the geo group or the non-configured group.
    */
   private DirectionalGroup getGroup(String dname, String poolRecordId) {
      DirectionalPoolRecordDetail record = getRecordByDNameAndId(dname, poolRecordId).get();
      return api.getDirectionalGroupApiForAccount(account.getId())
                .get(record.getGeolocationGroup().or(record.getGroup()).get().getId());
   }
View Full Code Here

   /**
    * gets the geo group or the non-configured group.
    */
   private DirectionalGroup getGroup(String dname, String poolRecordId) {
      DirectionalPoolRecordDetail record = getRecordByDNameAndId(dname, poolRecordId).get();
      return api.getDirectionalGroupApiForAccount(account.getId())
                .get(record.getGeolocationGroup().or(record.getGroup()).get().getId());
   }
View Full Code Here

   public void testAddRecordIntoGeoGroup() {
      String geoGroupId = getRecordByDNameAndId(dname, cnameCanary).get().getGeolocationGroup().get().getId();
      cname2Canary = api(zoneName).addRecordIntoExistingGroup(cnamePoolId, cname2RecordCanary, geoGroupId);
      getAnonymousLogger().info("created CNAME record in ipv4 pool: " + cname2Canary);

      DirectionalPoolRecordDetail detail =
            checkRecordConsistentInNonConfiguredGroup(dname, cname2Canary, cname2RecordCanary);
      assertEquals(detail.getGroup().get().getId(), geoGroupId);
   }
View Full Code Here

      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

   /**
    * gets the geo group or the non-configured group.
    */
   private DirectionalGroup getGroup(String dname, String poolRecordId) {
      DirectionalPoolRecordDetail record = getRecordByDNameAndId(dname, poolRecordId).get();
      return api.getDirectionalGroupApiForAccount(account.getId())
                .get(record.getGeolocationGroup().or(record.getGroup()).get().getId());
   }
View Full Code Here

   public void testAddRecordIntoGeoGroup() {
      String geoGroupId = getRecordByDNameAndId(dname, cnameCanary).get().getGeolocationGroup().get().getId();
      cname2Canary = api(zoneName).addRecordIntoExistingGroup(cnamePoolId, cname2RecordCanary, geoGroupId);
      getAnonymousLogger().info("created CNAME record in ipv4 pool: " + cname2Canary);

      DirectionalPoolRecordDetail detail =
            checkRecordConsistentInNonConfiguredGroup(dname, cname2Canary, cname2RecordCanary);
      assertEquals(detail.getGroup().get().getId(), geoGroupId);
   }
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.