Package org.jclouds.gogrid.options

Examples of org.jclouds.gogrid.options.GetImageListOptions


   /**
    * Tests common server image operations.
    */
   @Test(enabled = true)
   public void testImageLifecycle() {
      GetImageListOptions options = GetImageListOptions.Builder.publicDatabaseServers();
      Set<ServerImage> images = api.getImageServices().getImageList(options);

      Predicate<ServerImage> isDatabaseServer = new Predicate<ServerImage>() {
         @Override
         public boolean apply(@Nullable ServerImage serverImage) {
View Full Code Here


   @Test
   public void testGetImageListWithOptions() throws NoSuchMethodException, IOException {
      Invokable<?, ?> method = method(GridImageAsyncClient.class, "getImageList", GetImageListOptions[].class);
      GeneratedHttpRequest httpRequest = processor.createRequest(
            method, ImmutableList.<Object> of(
            new GetImageListOptions().onlyPublic().setState(ServerImageState.AVAILABLE)
                  .setType(ServerImageType.WEB_APPLICATION_SERVER)));

      assertRequestLineEquals(httpRequest, "GET https://api.gogrid.com/api/grid/image/list?v=1.5&"
            + "isPublic=true&image.state=Available&" + "image.type=Web%20Server HTTP/1.1");
      assertNonPayloadHeadersEqual(httpRequest, "");
View Full Code Here

   /**
    * Tests common server image operations.
    */
   @Test(enabled = true)
   public void testImageLifecycle() {
      GetImageListOptions options = GetImageListOptions.Builder.publicDatabaseServers();
      Set<ServerImage> images = api.getImageServices().getImageList(options);

      Predicate<ServerImage> isDatabaseServer = new Predicate<ServerImage>() {
         @Override
         public boolean apply(@Nullable ServerImage serverImage) {
View Full Code Here

   @Test
   public void testGetImageListWithOptions() throws NoSuchMethodException, IOException {
      Invokable<?, ?> method = method(GridImageApi.class, "getImageList", GetImageListOptions[].class);
      GeneratedHttpRequest httpRequest = processor.createRequest(
            method, ImmutableList.<Object> of(
            new GetImageListOptions().onlyPublic().setState(ServerImageState.AVAILABLE)
                  .setType(ServerImageType.WEB_APPLICATION_SERVER)));

      assertRequestLineEquals(httpRequest, "GET https://api.gogrid.com/api/grid/image/list?v=1.5&"
            + "isPublic=true&image.state=Available&" + "image.type=Web%20Server HTTP/1.1");
      assertNonPayloadHeadersEqual(httpRequest, "");
View Full Code Here

   @Test
   public void testGetImageListWithOptions() throws NoSuchMethodException, IOException {
      Invokable<?, ?> method = method(GridImageAsyncClient.class, "getImageList", GetImageListOptions[].class);
      GeneratedHttpRequest httpRequest = processor.createRequest(
            method, ImmutableList.<Object> of(
            new GetImageListOptions().onlyPublic().setState(ServerImageState.AVAILABLE)
                  .setType(ServerImageType.WEB_APPLICATION_SERVER)));

      assertRequestLineEquals(httpRequest, "GET https://api.gogrid.com/api/grid/image/list?v=1.5&"
            + "isPublic=true&image.state=Available&" + "image.type=Web%20Server HTTP/1.1");
      assertNonPayloadHeadersEqual(httpRequest, "");
View Full Code Here

   /**
    * Tests common server image operations.
    */
   @Test(enabled = true)
   public void testImageLifecycle() {
      GetImageListOptions options = GetImageListOptions.Builder.publicDatabaseServers();
      Set<ServerImage> images = api.getImageServices().getImageList(options);

      Predicate<ServerImage> isDatabaseServer = new Predicate<ServerImage>() {
         @Override
         public boolean apply(@Nullable ServerImage serverImage) {
View Full Code Here

   @Test
   public void testGetImageListWithOptions() throws NoSuchMethodException, IOException {
      Invokable<?, ?> method = method(GridImageApi.class, "getImageList", GetImageListOptions[].class);
      GeneratedHttpRequest httpRequest = processor.createRequest(
            method, ImmutableList.<Object> of(
            new GetImageListOptions().onlyPublic().setState(ServerImageState.AVAILABLE)
                  .setType(ServerImageType.WEB_APPLICATION_SERVER)));

      assertRequestLineEquals(httpRequest, "GET https://api.gogrid.com/api/grid/image/list?v=1.5&"
            + "isPublic=true&image.state=Available&" + "image.type=Web%20Server HTTP/1.1");
      assertNonPayloadHeadersEqual(httpRequest, "");
View Full Code Here

   /**
    * Tests common server image operations.
    */
   @Test(enabled = true)
   public void testImageLifecycle() {
      GetImageListOptions options = GetImageListOptions.Builder.publicDatabaseServers();
      Set<ServerImage> images = api.getImageServices().getImageList(options);

      Predicate<ServerImage> isDatabaseServer = new Predicate<ServerImage>() {
         @Override
         public boolean apply(@Nullable ServerImage serverImage) {
View Full Code Here

TOP

Related Classes of org.jclouds.gogrid.options.GetImageListOptions

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.