mirror of https://github.com/apache/jclouds.git
Register the public key before running the tests
This commit is contained in:
parent
1c2b2f212a
commit
ca87231aaf
|
@ -143,6 +143,10 @@ public class CloudStackComputeServiceAdapterLiveTest extends BaseCloudStackClien
|
||||||
keyPairName = prefix + "-adapter-test-keypair";
|
keyPairName = prefix + "-adapter-test-keypair";
|
||||||
try {
|
try {
|
||||||
keyPair = ComputeTestUtils.setupKeyPair();
|
keyPair = ComputeTestUtils.setupKeyPair();
|
||||||
|
|
||||||
|
client.getSSHKeyPairClient().deleteSSHKeyPair(keyPairName);
|
||||||
|
client.getSSHKeyPairClient().registerSSHKeyPair(keyPairName, keyPair.get("public"));
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
fail("Unable to create keypair", e);
|
fail("Unable to create keypair", e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue