To let the tests use by default SSH based authentication, you could add the 
following method to the 
[ProfitBricksComputeServiceLiveTest](https://github.com/jclouds/jclouds-labs/blob/master/profitbricks-rest/src/test/java/org/apache/jclouds/profitbricks/rest/compute/ProfitBricksComputeServiceLiveTest.java)
 class:
```java
@Override
protected TemplateBuilder templateBuilder() {
   TemplateOptions authOptions = TemplateOptions.Builder
      .authorizePublicKey(keyPair.get("public"))
      .overrideLoginPrivateKey(keyPair.get("private"));
   return super.templateBuilder().options(authOptions);
}
```
The `keyPair` variable is created in the base class and contains an 
auto-generated SSH key pair, to be used in the tests. With this method, the 
selected image will be configured by default to use SSh authentication using 
that key pair.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/408#issuecomment-327730721

Reply via email to