Package org.jclouds.rackspace.cloudloadbalancers.v1.domain

Examples of org.jclouds.rackspace.cloudloadbalancers.v1.domain.SessionPersistence


   @Test(dependsOnMethods = "testCreateAndGetSessionPersistence")
   public void testRemoveAndGetSessionPersistence() throws Exception {
      api.getSessionPersistenceApiForZoneAndLoadBalancer(zone, lb.getId()).delete();
      assertTrue(awaitAvailable(api.getLoadBalancerApiForZone(zone)).apply(lb));
     
      SessionPersistence sessionPersistence =
            api.getSessionPersistenceApiForZoneAndLoadBalancer(zone, lb.getId()).get();
     
      assertNull(sessionPersistence);
   }
View Full Code Here


            responseWithAccess,
            authenticatedGET().endpoint(endpoint).build(),
            HttpResponse.builder().statusCode(OK.getStatusCode()).payload(payloadFromResource("/sessionpersistence-get.json")).build()
      ).getSessionPersistenceApiForZoneAndLoadBalancer("DFW", 2000);

      SessionPersistence sessionPersistence = api.get();
      assertEquals(sessionPersistence, SessionPersistence.HTTP_COOKIE);
   }
View Full Code Here

            responseWithAccess,
            authenticatedGET().endpoint(endpoint).build(),
            HttpResponse.builder().statusCode(OK.getStatusCode()).payload(payloadFromResource("/sessionpersistence-get-deleted.json")).build()
      ).getSessionPersistenceApiForZoneAndLoadBalancer("DFW", 2000);

      SessionPersistence sessionPersistence = api.get();
      assertNull(sessionPersistence);
   }
View Full Code Here

   @Test(dependsOnMethods = "testCreateLoadBalancer")
   public void testCreateAndGetSessionPersistence() throws Exception {
      api.getSessionPersistenceApiForZoneAndLoadBalancer(zone, lb.getId()).create(SessionPersistence.HTTP_COOKIE);
      assertTrue(awaitAvailable(api.getLoadBalancerApiForZone(zone)).apply(lb));
     
      SessionPersistence sessionPersistence =
            api.getSessionPersistenceApiForZoneAndLoadBalancer(zone, lb.getId()).get();

      assertEquals(sessionPersistence, SessionPersistence.HTTP_COOKIE);
   }
View Full Code Here

   @Test(dependsOnMethods = "testCreateAndGetSessionPersistence")
   public void testRemoveAndGetSessionPersistence() throws Exception {
      api.getSessionPersistenceApiForZoneAndLoadBalancer(zone, lb.getId()).delete();
      assertTrue(awaitAvailable(api.getLoadBalancerApiForZone(zone)).apply(lb));
     
      SessionPersistence sessionPersistence =
            api.getSessionPersistenceApiForZoneAndLoadBalancer(zone, lb.getId()).get();
     
      assertNull(sessionPersistence);
   }
View Full Code Here

            responseWithAccess,
            authenticatedGET().endpoint(endpoint).build(),
            HttpResponse.builder().statusCode(OK.getStatusCode()).payload(payloadFromResource("/sessionpersistence-get.json")).build()
      ).getSessionPersistenceApiForZoneAndLoadBalancer("DFW", 2000);

      SessionPersistence sessionPersistence = api.get();
      assertEquals(sessionPersistence, SessionPersistence.HTTP_COOKIE);
   }
View Full Code Here

            responseWithAccess,
            authenticatedGET().endpoint(endpoint).build(),
            HttpResponse.builder().statusCode(OK.getStatusCode()).payload(payloadFromResource("/sessionpersistence-get-deleted.json")).build()
      ).getSessionPersistenceApiForZoneAndLoadBalancer("DFW", 2000);

      SessionPersistence sessionPersistence = api.get();
      assertNull(sessionPersistence);
   }
View Full Code Here

            responseWithAccess,
            authenticatedGET().endpoint(endpoint).build(),
            HttpResponse.builder().statusCode(OK.getStatusCode()).payload(payloadFromResource("/sessionpersistence-get.json")).build()
      ).getSessionPersistenceApi("DFW", 2000);

      SessionPersistence sessionPersistence = api.get();
      assertEquals(sessionPersistence, SessionPersistence.HTTP_COOKIE);
   }
View Full Code Here

            responseWithAccess,
            authenticatedGET().endpoint(endpoint).build(),
            HttpResponse.builder().statusCode(OK.getStatusCode()).payload(payloadFromResource("/sessionpersistence-get-deleted.json")).build()
      ).getSessionPersistenceApi("DFW", 2000);

      SessionPersistence sessionPersistence = api.get();
      assertNull(sessionPersistence);
   }
View Full Code Here

   @Test(dependsOnMethods = "testCreateLoadBalancer")
   public void testCreateAndGetSessionPersistence() throws Exception {
      api.getSessionPersistenceApi(region, lb.getId()).create(SessionPersistence.HTTP_COOKIE);
      assertTrue(awaitAvailable(api.getLoadBalancerApi(region)).apply(lb));

      SessionPersistence sessionPersistence =
            api.getSessionPersistenceApi(region, lb.getId()).get();

      assertEquals(sessionPersistence, SessionPersistence.HTTP_COOKIE);
   }
View Full Code Here

TOP

Related Classes of org.jclouds.rackspace.cloudloadbalancers.v1.domain.SessionPersistence

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.