> +import org.jclouds.shipyard.domain.accounts.AccountInfo;
> +import org.jclouds.shipyard.domain.accounts.CreateAccount;
> +import org.jclouds.shipyard.internal.BaseShipyardApiLiveTest;
> +import org.testng.annotations.AfterClass;
> +import org.testng.annotations.Test;
> +
> +@Test(groups = "live", testName = "AccountsApiLiveTest", singleThreaded =
> true)
> +public class AccountsApiLiveTest extends BaseShipyardApiLiveTest {
> +
> + private final String username =
> UUID.randomUUID().toString().replaceAll("-", "");
> + private final String password =
> UUID.randomUUID().toString().replaceAll("-", "");
> +
> + @AfterClass (alwaysRun = true)
> + protected void tearDown() {
> + boolean removed = api().deleteAccount(username);
> + assertTrue(removed);
This will fail if the test that creates the account fails.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/165/files#r28409388