jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Chicchiriccò <notificati...@github.com>
Subject Re: [jclouds-labs] [JCLOUDS-850] Providing AzureTemplateBuilderLiveTest (#156)
Date Wed, 01 Apr 2015 12:54:00 GMT
> @@ -89,6 +89,14 @@ public void copyTo(final TemplateOptions to) {
>           if (storageAccountType.isPresent()) {
>              eTo.storageAccountType(storageAccountType.get());
>           }
> +
> +         final LoginCredentials credentials = new LoginCredentials.Builder().
> +                 user(loginUser).
> +                 password(loginPassword == null || !loginPassword.isPresent() ? null
: loginPassword.get()).
> +                 privateKey(loginPrivateKey == null || !loginPrivateKey.isPresent()
? null : loginPrivateKey.get()).
> +                 authenticateSudo(authenticateSudo == null ? false : authenticateSudo).
> +                 build();
> +         eTo.overrideLoginCredentials(credentials);

Without this, I get failure in [BaseTemplateBuilderLiveTest#testFromTemplate](https://github.com/jclouds/jclouds/blob/master/compute/src/test/java/org/jclouds/compute/internal/BaseTemplateBuilderLiveTest.java#L65)
because `loginPasswordPresent=true, loginPrivateKeyPresent=true` is not correctly copied.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/156/files#r27565869
Mime
View raw message