jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Baldwin <notificati...@github.com>
Subject Re: [jclouds-labs] Profitbricks IpBlock API (#141)
Date Mon, 02 Mar 2015 17:38:50 GMT
> +import org.testng.annotations.Test;
> +
> +@Test(groups = "live", testName = "IpBlockApiLiveTest", singleThreaded = true)
> +public class IpBlockApiLiveTest extends BaseProfitBricksLiveTest {
> +
> +   String nicid;
> +   IpBlock newIpBlock;
> +   String ip;
> +
> +   @Override
> +   public void initialize() {
> +      super.initialize();
> +
> +      List<Nic> nics = api.nicApi().getAllNics();
> +
> +      assertFalse(nics.isEmpty(), "At least one NIC is requred to test IpBlocks");

@nacx Thanks for reviewing all of this. This live test assumes the user has already built
out their environment via API or UI with a datacenter, server, volume, and NIC. So, this is
a precondition that will be met by default. This is very similar to the Server live tests
where a datacenter is required before running the test. 

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