Examples of ParseOperationTest


Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

      InstanceTemplate options = InstanceTemplate.builder().forMachineType("n1-standard-1")
              .addNetworkInterface(URI.create("https://www.googleapis" +
                      ".com/compute/v1beta13/projects/myproject/networks/default"));

      assertEquals(api.createInZone("test-1", options, "us-central1-a"), new ParseOperationTest().expected());
   }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

              .addTag("aTag")
              .addServiceAccount(Instance.ServiceAccount.builder().email("default").addScopes("myscope").build())
              .addMetadata("aKey", "aValue");

      assertEquals(api.createInZone("test-0", options, "us-central1-a"),
              new ParseOperationTest().expected());
   }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

      InstanceApi api = requestsSendResponses(requestForScopes(COMPUTE_SCOPE),
              TOKEN_RESPONSE, delete, deleteResponse).getInstanceApiForProject("myproject");

      assertEquals(api.delete("test-1"),
              new ParseOperationTest().expected());
   }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

      ProjectApi api = requestsSendResponses(requestForScopes(GoogleComputeEngineConstants.COMPUTE_SCOPE),
              TOKEN_RESPONSE, setMetadata,
              setMetadataResponse).getProjectApi();

      assertEquals(api.setCommonInstanceMetadata("myproject", new ParseMetadataTest().expected()),
              new ParseOperationTest().expected());
   }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

      AddressApi api = requestsSendResponses(requestForScopes(COMPUTE_SCOPE),
              TOKEN_RESPONSE, insert,
              insertAddressResponse).getAddressApiForProject("myproject");

      assertEquals(api.createInRegion("us-central1", "test-ip1"), new ParseOperationTest().expected());
   }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

      AddressApi api = requestsSendResponses(requestForScopes(COMPUTE_SCOPE),
              TOKEN_RESPONSE, delete, deleteResponse).getAddressApiForProject("myproject");

      assertEquals(api.deleteInRegion("us-central1", "test-ip1"),
              new ParseOperationTest().expected());
   }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

      DiskApi api = requestsSendResponses(requestForScopes(COMPUTE_SCOPE),
              TOKEN_RESPONSE, insert,
              insertDiskResponse).getDiskApiForProject("myproject");

      assertEquals(api.createInZone("testimage1", 1, "us-central1-a"), new ParseOperationTest().expected());
   }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

      DiskApi api = requestsSendResponses(requestForScopes(COMPUTE_SCOPE),
                                          TOKEN_RESPONSE, insert,
                                          insertDiskResponse).getDiskApiForProject("myproject");

      assertEquals(api.createFromImageWithSizeInZone(IMAGE_URL, "testimage1", 1, "us-central1-a"), new ParseOperationTest().expected());
   }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

      DiskApi api = requestsSendResponses(requestForScopes(COMPUTE_SCOPE),
              TOKEN_RESPONSE, createSnapshotRequest,
              createSnapshotResponse).getDiskApiForProject("myproject");

      assertEquals(api.createSnapshotInZone("us-central1-a", "testimage1", "test-snap"), new ParseOperationTest().expected());
   }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

      DiskApi api = requestsSendResponses(requestForScopes(COMPUTE_SCOPE),
              TOKEN_RESPONSE, delete, deleteResponse).getDiskApiForProject("myproject");

      assertEquals(api.deleteInZone("us-central1-a", "testimage1"),
              new ParseOperationTest().expected());
   }
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.