> +
> +import static org.testng.Assert.assertEquals;
> +
> +@Test(groups = "live", testName = "CreateServerApiLiveTest", singleThreaded
> = true)
> +public class CreateServerApiLiveTest extends BaseNovaApiLiveTest {
> + private ServerApi serverApi;
> + private String zone;
> +
> + @BeforeGroups(groups = {"integration", "live"})
> + public void setupContext() {
> + super.setup();
> + zone = Iterables.getLast(api.getConfiguredZones(), "nova");
> + serverApi = api.getServerApiForZone(zone);
> + }
> +
> + private Server createServer(String regionId, String availabilityZoneId,
> boolean shouldWork) {
Replace the "magic boolean" with an `expectedState` parameter? I think that
would make the test easier to read...
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/180/files#r6972772