Register the public key before running the tests

This commit is contained in:
Andrei Savu 2012-03-15 14:58:23 +02:00
parent 1c2b2f212a
commit ca87231aaf
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"; 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);
} }