From ca87231aaf7a2577be0c3307a3392330b9f00455 Mon Sep 17 00:00:00 2001 From: Andrei Savu Date: Thu, 15 Mar 2012 14:58:23 +0200 Subject: [PATCH] Register the public key before running the tests --- .../compute/CloudStackComputeServiceAdapterLiveTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/CloudStackComputeServiceAdapterLiveTest.java b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/CloudStackComputeServiceAdapterLiveTest.java index 0b500d458b..791e1d9047 100644 --- a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/CloudStackComputeServiceAdapterLiveTest.java +++ b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/CloudStackComputeServiceAdapterLiveTest.java @@ -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); }