Package com.dyn.client.v3.messaging.handlers

Examples of com.dyn.client.v3.messaging.handlers.DynMessagingErrorHandler


   @Test
   protected void testListAndGetGeoServices() {
      ImmutableList<String> geos = api().list().toList();
      getAnonymousLogger().info("geo services: " + geos.size());
      for (String fqdn : geos) {
         GeoService geo = api().get(fqdn);
         checkGeoService(geo);
      }
   }
View Full Code Here


   String fqdn = System.getProperty("user.name").replace('.', '-') + ".zone.dynecttest.jclouds.org";
   String contact = JcloudsVersion.get() + ".jclouds.org";

   @Test
   public void testCreateZone() {
      Job job = api().scheduleCreateWithContact(fqdn, contact);
      checkNotNull(job, "unable to create zone %s", fqdn);
      getAnonymousLogger().info("created zone: " + job);
      assertEquals(job.getStatus(), Status.SUCCESS);
      assertEquals(api.getJob(job.getId()), job);
   }
View Full Code Here

      checkZone(zone);
   }

   @Test(dependsOnMethods = "testPublishZone")
   public void testFreezeZone() {
      Job job = api().freeze(fqdn);
      assertEquals(job.getStatus(), Status.SUCCESS);
      assertEquals(api.getJob(job.getId()), job);
      // TODO: determine how to prove it is frozen
   }
View Full Code Here

      // TODO: determine how to prove it is frozen
   }

   @Test(dependsOnMethods = "testFreezeZone")
   public void testThawZone() {
      Job job = api().thaw(fqdn);
      assertEquals(job.getStatus(), Status.SUCCESS);
      assertEquals(api.getJob(job.getId()), job);
      // TODO: determine how to prove it is thawed
   }
View Full Code Here

      // TODO: determine how to prove it is thawed
   }

   @Test(dependsOnMethods = "testThawZone")
   public void testDeleteZoneChanges() {
      Job job = api().deleteChanges(fqdn);
      assertEquals(job.getStatus(), Status.SUCCESS);
      assertEquals(api.getJob(job.getId()), job);
   }
View Full Code Here

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

   @Test(dependsOnMethods = "testDeleteZoneChanges")
   public void testDeleteZone() {
      Job job = api().delete(fqdn);
      assertEquals(job.getStatus(), Status.SUCCESS);
      assertEquals(api.getJob(job.getId()), job);
      assertNull(api().get(fqdn), "job " + job + " didn't delete zone" + fqdn);
   }
View Full Code Here

   @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);
         assertEquals(api.getJob(job.getId()), job);
         zone = api.getZoneApi().publish(fqdn);
         checkNotNull(zone, "unable to publish zone %s", fqdn);
         getAnonymousLogger().info("published zone: " + zone);
      }
      checkZone(zone);
View Full Code Here

   }

   @Test(dependsOnMethods = "testCreatePublishZone")
   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

         api.getZoneApi().publish(fqdn);
      } catch (Exception ignored) {}

      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

   @Test(dependsOnMethods = "testCreateAndPublishHttpRedirect")
   public void testDeleteHttpRedirect() throws Exception {
      Thread.sleep(3000); // FIXME - figure out delays
      getAndVerifyRedirect(redirectName, 302, "Y", "http://foo.com/");
      Job job = api().scheduleDelete(redirectName);
      assertEquals(job.getStatus(), Status.SUCCESS);
      assertEquals(api.getJob(job.getId()), job);
      HttpRedirect redirect = api.getHttpRedirectApiForZone(fqdn).getHttpRedirect(redirectName);
      checkState(redirect == null, "redirect was now null for Zone: %s", fqdn);
   }
View Full Code Here

TOP

Related Classes of com.dyn.client.v3.messaging.handlers.DynMessagingErrorHandler

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.