Register the public key before running the tests

This commit is contained in:
Andrei Savu 2012-03-15 14:58:23 +02:00
parent b1ba624707
commit 6192926b28
1 changed files with 4 additions and 0 deletions

View File

@ -143,6 +143,10 @@ public class CloudStackComputeServiceAdapterLiveTest extends BaseCloudStackClien
keyPairName = prefix + "-adapter-test-keypair";
try {
keyPair = ComputeTestUtils.setupKeyPair();
client.getSSHKeyPairClient().deleteSSHKeyPair(keyPairName);
client.getSSHKeyPairClient().registerSSHKeyPair(keyPairName, keyPair.get("public"));
} catch (IOException e) {
fail("Unable to create keypair", e);
}