jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <notificati...@github.com>
Subject Re: [jclouds-labs] JCLOUDS-702: JClouds ProfitBricks provider - ComputeServiceAdapter (#145)
Date Tue, 03 Mar 2015 22:24:05 GMT
> +import org.jclouds.profitbricks.domain.Image;
> +import org.jclouds.profitbricks.domain.Server;
> +import org.testng.annotations.Test;
> +
> +import com.google.common.collect.ImmutableList;
> +import com.google.common.collect.Iterables;
> +import com.google.inject.Injector;
> +import com.google.inject.Module;
> +import org.jclouds.compute.ComputeService;
> +import org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials;
> +import org.jclouds.compute.domain.OsFamily;
> +import org.jclouds.compute.domain.Template;
> +import org.jclouds.compute.domain.TemplateBuilder;
> +
> +@Test(groups = "live", singleThreaded = true, testName = "ProfitBricksComputeServiceAdapterLiveTest")
> +public class ProfitBricksComputeServiceAdapterLiveTest extends BaseProfitBricksLiveTest
{

You don't have to build a custom test for this. You must extend the [BaseComputeServiceLiveTest](https://github.com/jclouds/jclouds/blob/master/compute/src/test/java/org/jclouds/compute/internal/BaseComputeServiceLiveTest.java).
That is the jclouds contract. Once that test passes, the ComputeService implementation is
working as expected. You can take a look at the [DigitalOceanComputeServiceLiveTest](https://github.com/jclouds/jclouds-labs/blob/master/digitalocean/src/test/java/org/jclouds/digitalocean/compute/DigitalOceanComputeServiceLiveTest.java)
for an example.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/145/files#r25733460
Mime
View raw message