Package org.jclouds.dynect.v3.domain

Examples of org.jclouds.dynect.v3.domain.Job


   }

   public void testGetSOAWhenResponseIs2xx() {
      DynECTApi success = requestsSendResponses(createSession, createSessionResponse, getSOA, soaResponse);
      assertEquals(success.getRecordApiForZone("jclouds.org").getSOA(soaId.getFQDN(), soaId.getId()).toString(),
                   new GetSOARecordResponseTest().expected().toString());
   }
View Full Code Here


        .id(50976579l).build();

   public void testGetSPFWhenResponseIs2xx() {
      DynECTApi success = requestsSendResponses(createSession, createSessionResponse, getSPF, spfResponse);
      assertEquals(success.getRecordApiForZone("jclouds.org").getSPF(spfId.getFQDN(), spfId.getId()).toString(),
                   new GetSPFRecordResponseTest().expected().toString());
   }
View Full Code Here

        .id(50976579l).build();

   public void testGetSRVWhenResponseIs2xx() {
      DynECTApi success = requestsSendResponses(createSession, createSessionResponse, getSRV, srvResponse);
      assertEquals(success.getRecordApiForZone("jclouds.org").getSRV(srvId.getFQDN(), srvId.getId()).toString(),
                   new GetSRVRecordResponseTest().expected().toString());
   }
View Full Code Here

        .id(50976579l).build();

   public void testGetSSHFPWhenResponseIs2xx() {
      DynECTApi success = requestsSendResponses(createSession, createSessionResponse, getSSHFP, sshfpResponse);
      assertEquals(success.getRecordApiForZone("jclouds.org").getSSHFP(sshfpId.getFQDN(), sshfpId.getId()).toString(),
                   new GetSSHFPRecordResponseTest().expected().toString());
   }
View Full Code Here

        .id(50976579l).build();

   public void testGetTXTWhenResponseIs2xx() {
      DynECTApi success = requestsSendResponses(createSession, createSessionResponse, getTXT, txtResponse);
      assertEquals(success.getRecordApiForZone("jclouds.org").getTXT(txtId.getFQDN(), txtId.getId()).toString(),
                   new GetTXTRecordResponseTest().expected().toString());
   }
View Full Code Here

         .payload(payloadFromResourceWithContentType("/list_records.json", APPLICATION_JSON)).build();

   public void testListWhenResponseIs2xx() {
      DynECTApi success = requestsSendResponses(createSession, createSessionResponse, list, listResponse);
      assertEquals(success.getRecordApiForZone("jclouds.org").list().toString(),
                   new ListRecordsResponseTest().expected().toString());
   }
View Full Code Here

         .addHeader("Auth-Token", authToken).build();  

   public void testListByFQDNWhenResponseIs2xx() {
      DynECTApi success = requestsSendResponses(createSession, createSessionResponse, listByFQDN, listResponse);
      assertEquals(success.getRecordApiForZone("jclouds.org").listByFQDN("www.foo.com").toString(),
      new ListRecordsResponseTest().expected().toString());
   }
View Full Code Here

                                              .addHeader("Auth-Token", authToken).build();  

   public void testListByFQDNAndTypeWhenResponseIs2xx() {
      DynECTApi success = requestsSendResponses(createSession, createSessionResponse, listByFQDNAndType, listResponse);
      assertEquals(success.getRecordApiForZone("jclouds.org").listByFQDNAndType("www.foo.com", "A").toString(),
            new ListRecordsResponseTest().expected().toString());
   }
View Full Code Here

            .email("everett@" + JCLOUDS_EXAMPLE)
            .ttl(600001)
            .comment("Hello Domain Update")
            .build();

      Job job = api.update(3650908, updateDomain);
     
      assertEquals(job.getStatus(), Job.Status.COMPLETED);
   }
View Full Code Here

               .build(),
            HttpResponse.builder().statusCode(OK.getStatusCode()).payload(payloadFromResource("/domain-update-response.json")).build())
            .getDomainApi();

      List<Integer> ids = ImmutableList.of(3650906, 3650908);
      Job job = api.updateTTL(ids, 1234567);
     
      assertEquals(job.getStatus(), Job.Status.COMPLETED);
   }
View Full Code Here

TOP

Related Classes of org.jclouds.dynect.v3.domain.Job

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.