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

Examples of com.dyn.client.v3.traffic.domain.GeoRegionGroup


      assertEquals(success.getRecordApiForZone("jclouds.org").getA(aId.getFQDN(), aId.getId()).toString(),
                   new GetARecordResponseTest().expected().toString());
   }

   public void testGetAWhenResponseIs404() {
      DynTrafficApi fail = requestsSendResponses(createSession, createSessionResponse, getA, notFound);
      assertNull(fail.getRecordApiForZone("jclouds.org").getA(aId.getFQDN(), aId.getId()));
   }
View Full Code Here


        .fqdn("jclouds.org")
        .type("CNAME")
        .id(50976579l).build();

   public void testGetCNAMEWhenResponseIs2xx() {
      DynTrafficApi success = requestsSendResponses(createSession, createSessionResponse, getCNAME, cnameResponse);
      assertEquals(success.getRecordApiForZone("jclouds.org").getCNAME(cnameId.getFQDN(), cnameId.getId()).toString(),
                   new GetCNAMERecordResponseTest().expected().toString());
   }
View Full Code Here

      assertEquals(success.getRecordApiForZone("jclouds.org").getCNAME(cnameId.getFQDN(), cnameId.getId()).toString(),
                   new GetCNAMERecordResponseTest().expected().toString());
   }

   public void testGetCNAMEWhenResponseIs404() {
      DynTrafficApi fail = requestsSendResponses(createSession, createSessionResponse, getCNAME, notFound);
      assertNull(fail.getRecordApiForZone("jclouds.org").getCNAME(cnameId.getFQDN(), cnameId.getId()));
   }
View Full Code Here

        .fqdn("jclouds.org")
        .type("MX")
        .id(50976579l).build();

   public void testGetMXWhenResponseIs2xx() {
      DynTrafficApi success = requestsSendResponses(createSession, createSessionResponse, getMX, mxResponse);
      assertEquals(success.getRecordApiForZone("jclouds.org").getMX(mxId.getFQDN(), mxId.getId()).toString(),
                   new GetMXRecordResponseTest().expected().toString());
   }
View Full Code Here

* @author Adrian Cole
*/
@Test(groups = "unit", testName = "DynTrafficProviderMetadataTest")
public class DynTrafficProviderMetadataTest extends BaseProviderMetadataTest {
   public DynTrafficProviderMetadataTest() {
      super(new DynTrafficProviderMetadata(), new DynTrafficApiMetadata());
   }
View Full Code Here

         byte[] data = closeClientButKeepContentStream(response);
         String message = data != null ? new String(data) : null;
         if (message != null) {
            exception = new HttpResponseException(command, response, message);
            if (message.indexOf(JOB_STILL_RUNNING) != -1)
               exception = new JobStillRunningException(JOB_STILL_RUNNING, exception);
            else if (message.indexOf(OPERATION_BLOCKED) != -1)
               exception = new JobStillRunningException(OPERATION_BLOCKED, exception);
            else if (message.indexOf(TARGET_EXISTS) != -1)
               exception = new TargetExistsException(TARGET_EXISTS, exception);
         } else {
            exception = new HttpResponseException(command, response);
         }
View Full Code Here

            if (message.indexOf(JOB_STILL_RUNNING) != -1)
               exception = new JobStillRunningException(JOB_STILL_RUNNING, exception);
            else if (message.indexOf(OPERATION_BLOCKED) != -1)
               exception = new JobStillRunningException(OPERATION_BLOCKED, exception);
            else if (message.indexOf(TARGET_EXISTS) != -1)
               exception = new TargetExistsException(TARGET_EXISTS, exception);
         } else {
            exception = new HttpResponseException(command, response);
         }
      } finally {
         releasePayload(response);
View Full Code Here

* @author Adrian Cole
*/
@Test(groups = "unit", testName = "DynTrafficProviderMetadataTest")
public class DynTrafficProviderMetadataTest extends BaseProviderMetadataTest {
   public DynTrafficProviderMetadataTest() {
      super(new DynTrafficProviderMetadata(), new DynTrafficApiMetadata());
   }
View Full Code Here

*/
public abstract class BaseDynTrafficParseTest<T> extends BaseItemParserTest<T> {

   @Override
   protected Injector injector() {
      return Guice.createInjector(new GsonModule(), new DynTrafficParserModule());
   }
View Full Code Here

      for (String service : geoApi().list()) {
         GeoRegionGroupApi api = api(service);
         ImmutableList<String> groups = api.list().toList();
         getAnonymousLogger().info("geo service: " + service + " group count: " + groups.size());
         for (String group : groups) {
            GeoRegionGroup groupDetail = api.get(group);
            assertNotNull(groupDetail.getServiceName().get(), "ServiceName cannot be null " + groupDetail);
            checkGeoRegionGroup(groupDetail);
         }
      }
   }
View Full Code Here

TOP

Related Classes of com.dyn.client.v3.traffic.domain.GeoRegionGroup

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.