Examples of GroupState


Examples of org.jclouds.rackspace.autoscale.v1.domain.GroupState

   @Test
   public void testGetState() {
      for (String zone : api.getConfiguredZones()) {
         GroupApi groupApi = api.getGroupApiForZone(zone);
         String groupId = created.get(zone).get(0).getId();
         GroupState testGroup = groupApi.getState(groupId);
         assertNull(testGroup.getId()); // The id recently changed to not be included when getting state.
      }
   }
View Full Code Here

Examples of org.jclouds.rackspace.autoscale.v1.domain.GroupState

            responseWithKeystoneAccess,
            authenticatedGET().endpoint(endpoint).build(),
            HttpResponse.builder().statusCode(200).payload(payloadFromResource("/autoscale_groups_state_response.json")).build()
            ).getGroupApiForZone("DFW");

      GroupState gs = api.getState("1234567890");
      assertEquals(gs.getId(), "1234567890");
      assertEquals(gs.getGroupInstances().size(), 2);
      assertEquals(gs.getGroupInstances().get(0).getId(), "444444");
   }
View Full Code Here

Examples of org.jclouds.rackspace.autoscale.v1.domain.GroupState

            responseWithKeystoneAccess,
            authenticatedGET().endpoint(endpoint).build(),
            HttpResponse.builder().statusCode(404).payload(payloadFromResource("/autoscale_groups_state_response.json")).build()
            ).getGroupApiForZone("DFW");

      GroupState gs = api.getState("1234567890");
      assertNull(gs);
   }
View Full Code Here

Examples of org.jclouds.rackspace.autoscale.v1.domain.GroupState

      try {
         AutoscaleApi autoscaleApi = api(server.getUrl("/").toString(), "rackspace-autoscale", overrides);
         GroupApi api = autoscaleApi.getGroupApiForZone("DFW");

         GroupState gs = api.getState("1234567890");

         /*
          * Check request
          */
         assertAuthentication(server);
         assertRequest(server.takeRequest(), "GET", "/v1.0/888888/groups/1234567890/state");

         /*
          * Check response
          */
         assertEquals(gs.getId(), "1234567890");
         assertEquals(gs.getGroupInstances().size(), 2);
         assertEquals(gs.getGroupInstances().get(0).getId(), "444444");
      } finally {
         server.shutdown();
      }
   }
View Full Code Here

Examples of org.jclouds.rackspace.autoscale.v1.domain.GroupState

      try {
         AutoscaleApi autoscaleApi = api(server.getUrl("/").toString(), "rackspace-autoscale", overrides);
         GroupApi api = autoscaleApi.getGroupApiForZone("DFW");

         GroupState gs = api.getState("1234567890");

         /*
          * Check request
          */
         assertAuthentication(server);
View Full Code Here

Examples of org.jclouds.rackspace.autoscale.v1.domain.GroupState

      try {
         AutoscaleApi autoscaleApi = api(server.getUrl("/").toString(), "rackspace-autoscale", overrides);
         GroupApi api = autoscaleApi.getGroupApiForZone("DFW");

         GroupState gs = api.getState("1234567890");

         /*
          * Check request
          */
         assertAuthentication(server);
         assertRequest(server.takeRequest(), "GET", "/v1.0/888888/groups/1234567890/state");

         /*
          * Check response
          */
         assertEquals(gs.getId(), "1234567890");
         assertEquals(gs.getGroupInstances().size(), 2);
         assertEquals(gs.getGroupInstances().get(0).getId(), "444444");
      } finally {
         server.shutdown();
      }
   }
View Full Code Here

Examples of org.jclouds.rackspace.autoscale.v1.domain.GroupState

      try {
         AutoscaleApi autoscaleApi = api(server.getUrl("/").toString(), "rackspace-autoscale", overrides);
         GroupApi api = autoscaleApi.getGroupApiForZone("DFW");

         GroupState gs = api.getState("1234567890");

         /*
          * Check request
          */
         assertAuthentication(server);
View Full Code Here

Examples of org.jclouds.rackspace.autoscale.v1.domain.GroupState

   @Test
   public void testGetState() {
      for (String zone : api.getConfiguredZones()) {
         GroupApi groupApi = api.getGroupApiForZone(zone);
         String groupId = created.get(zone).get(0).getId();
         GroupState testGroup = groupApi.getState(groupId);
         assertNull(testGroup.getId()); // The id recently changed to not be included when getting state.
      }
   }
View Full Code Here

Examples of org.jclouds.rackspace.autoscale.v1.domain.GroupState

   @Test
   public void testGetState() {
      for (String zone : api.getConfiguredZones()) {
         GroupApi groupApi = api.getGroupApiForZone(zone);
         String groupId = created.get(zone).get(0).getId();
         GroupState testGroup = groupApi.getState(groupId);
         assertNull(testGroup.getId()); // The id recently changed to not be included when getting state.
      }
   }
View Full Code Here

Examples of org.jclouds.rackspace.autoscale.v1.domain.GroupState

      try {
         AutoscaleApi autoscaleApi = api(server.getUrl("/").toString(), "rackspace-autoscale", overrides);
         GroupApi api = autoscaleApi.getGroupApiForZone("DFW");

         GroupState gs = api.getState("1234567890");

         /*
          * Check request
          */
         assertAuthentication(server);
         assertRequest(server.takeRequest(), "GET", "/v1.0/888888/groups/1234567890/state");

         /*
          * Check response
          */
         assertEquals(gs.getId(), "1234567890");
         assertEquals(gs.getGroupInstances().size(), 2);
         assertEquals(gs.getGroupInstances().get(0).getId(), "444444");
      } finally {
         server.shutdown();
      }
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.