Examples of ParseOperationTest


Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

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

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

Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

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

      assertEquals(api.createInZone("test-0", "us-central1-a", options),
              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.deleteInZone("us-central1-a", "test-1"),
              new ParseOperationTest().expected());
   }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

      InstanceApi api = requestsSendResponses(requestForScopes(COMPUTE_SCOPE),
              TOKEN_RESPONSE, setMetadata, setMetadataResponse).getInstanceApiForProject("myproject");

      assertEquals(api.setMetadataInZone("us-central1-a", "test-1", ImmutableMap.of("foo", "bar"), "efgh"),
              new ParseOperationTest().expected());
   }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

      InstanceApi api = requestsSendResponses(requestForScopes(COMPUTE_SCOPE),
              TOKEN_RESPONSE, reset, resetResponse).getInstanceApiForProject("myproject");

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

Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

      assertEquals(api.attachDiskInZone("us-central1-a", "test-1",
              new AttachDiskOptions()
                      .mode(DiskMode.READ_ONLY)
                      .source(URI.create("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/disks/testimage1"))
                      .type(DiskType.PERSISTENT)),
              new ParseOperationTest().expected());
   }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

      InstanceApi api = requestsSendResponses(requestForScopes(COMPUTE_SCOPE),
              TOKEN_RESPONSE, detach, detachResponse).getInstanceApiForProject("myproject");

      assertEquals(api.detachDiskInZone("us-central1-a", "test-1", "test-disk-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();
      Metadata expected = new ParseMetadataTest().expected();
      assertEquals(api.setCommonInstanceMetadata("myproject", expected.getItems(), expected.getFingerprint()),
              new ParseOperationTest().expected());
   }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

                              .IpProtocol(IpProtocol.TCP)
                              .addPort(22)
                              .addPortRange(23, 24).build())
                      .addSourceTag("tag1")
                      .addSourceRange("10.0.1.0/32")
                      .addTargetTag("tag2")), new ParseOperationTest().expected());

   }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.parse.ParseOperationTest

                              .IpProtocol(IpProtocol.TCP)
                              .addPort(22)
                              .addPortRange(23, 24).build())
                      .addSourceTag("tag1")
                      .addSourceRange("10.0.1.0/32")
                      .addTargetTag("tag2")), 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.