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); }