From 7cf4886a5159f58930d1858a84d7a58069e069d7 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Mon, 22 Nov 2010 11:14:56 +0100 Subject: [PATCH] stubbed out live tests for elastichosts drive api --- .../elastichosts/ElasticHostsClientLiveTest.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/sandbox/elastichosts/src/test/java/org/jclouds/elastichosts/ElasticHostsClientLiveTest.java b/sandbox/elastichosts/src/test/java/org/jclouds/elastichosts/ElasticHostsClientLiveTest.java index 2f9a15d388..139985f530 100644 --- a/sandbox/elastichosts/src/test/java/org/jclouds/elastichosts/ElasticHostsClientLiveTest.java +++ b/sandbox/elastichosts/src/test/java/org/jclouds/elastichosts/ElasticHostsClientLiveTest.java @@ -178,12 +178,16 @@ public class ElasticHostsClientLiveTest { } catch (Exception e) { } - info2 = client.createDrive(new CreateDriveRequest.Builder().name(prefix + "2").size(1024 * 1024l).build()); - client.imageDrive(info.getUuid(), info2.getUuid()); + try { + info2 = client.createDrive(new CreateDriveRequest.Builder().name(prefix + "2").size(1024 * 1024l).build()); + client.imageDrive(info.getUuid(), info2.getUuid()); - // TODO block until complete - System.err.println("state " + client.getDriveInfo(info2.getUuid())); - assertEquals(Utils.toStringAndClose(client.readDrive(info2.getUuid()).getInput()), "foo"); + // TODO block until complete + System.err.println("state " + client.getDriveInfo(info2.getUuid())); + assertEquals(Utils.toStringAndClose(client.readDrive(info2.getUuid()).getInput()), "foo"); + } finally { + findAndDestroyDrive(prefix + "2"); + } }