mirror of https://github.com/apache/jclouds.git
stubbed out live tests for elastichosts drive api
This commit is contained in:
parent
0caab0226b
commit
7cf4886a51
|
@ -178,12 +178,16 @@ public class ElasticHostsClientLiveTest {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
info2 = client.createDrive(new CreateDriveRequest.Builder().name(prefix + "2").size(1024 * 1024l).build());
|
try {
|
||||||
client.imageDrive(info.getUuid(), info2.getUuid());
|
info2 = client.createDrive(new CreateDriveRequest.Builder().name(prefix + "2").size(1024 * 1024l).build());
|
||||||
|
client.imageDrive(info.getUuid(), info2.getUuid());
|
||||||
|
|
||||||
// TODO block until complete
|
// TODO block until complete
|
||||||
System.err.println("state " + client.getDriveInfo(info2.getUuid()));
|
System.err.println("state " + client.getDriveInfo(info2.getUuid()));
|
||||||
assertEquals(Utils.toStringAndClose(client.readDrive(info2.getUuid()).getInput()), "foo");
|
assertEquals(Utils.toStringAndClose(client.readDrive(info2.getUuid()).getInput()), "foo");
|
||||||
|
} finally {
|
||||||
|
findAndDestroyDrive(prefix + "2");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue