stubbed out live tests for elastichosts drive api

This commit is contained in:
Adrian Cole 2010-11-22 11:14:56 +01:00
parent 0caab0226b
commit 7cf4886a51
1 changed files with 9 additions and 5 deletions

View File

@ -178,12 +178,16 @@ public class ElasticHostsClientLiveTest {
} catch (Exception e) {
}
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");
} finally {
findAndDestroyDrive(prefix + "2");
}
}