Package org.jclouds.dynect.v3.functions

Examples of org.jclouds.dynect.v3.functions.ToRecordIdsTest


   }

   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_geo_regiongroups.json", APPLICATION_JSON)).build();

   public void testListWhenResponseIs2xx() {
      DynECTApi success = requestsSendResponses(createSession, createSessionResponse, list, listResponse);
      assertEquals(success.getGeoRegionGroupApiForService("srv").list().toString(),
            new ListGeoRegionGroupsResponseTest().expected().toString());
   }
View Full Code Here

   HttpResponse listResponse = HttpResponse.builder().statusCode(OK.getStatusCode())
         .payload(payloadFromResourceWithContentType("/list_geo_services.json", APPLICATION_JSON)).build();

   public void testListWhenResponseIs2xx() {
      DynECTApi success = requestsSendResponses(createSession, createSessionResponse, list, listResponse);
      assertEquals(success.getGeoServiceApi().list().toString(), new ListGeoServicesResponseTest().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

TOP

Related Classes of org.jclouds.dynect.v3.functions.ToRecordIdsTest

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.