[
https://issues.apache.org/jira/browse/WHIRR-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13224528#comment-13224528
]
Andrei Savu commented on WHIRR-549:
-----------------------------------
We can use the same approach as in DestroyClusterCommandTest.testAllOptions.
Something like this:
{noformat}
Map<String, File> keys = KeyPair.generateTemporaryFiles();
int rc = command.run(null, out, null, Lists.newArrayList(
"--private-key-file", keys.get("private").getAbsolutePath()
));
{noformat}
> Remove dependency on system SSH keys in tests
> ---------------------------------------------
>
> Key: WHIRR-549
> URL: https://issues.apache.org/jira/browse/WHIRR-549
> Project: Whirr
> Issue Type: Bug
> Components: build
> Affects Versions: 0.7.1
> Reporter: Frank Scholten
> Assignee: Frank Scholten
> Fix For: 0.8.0
>
>
> Some tests rely on system SSH keys. This currently causes failing builds on
> Jenkins. See
> https://builds.apache.org/view/S-Z/view/Whirr/job/Whirr-Ubuntu/311/org.apache.whirr$whirr-cli/testReport/org.apache.whirr.cli.command/DestroyClusterCommandTest/testInsufficientOptions/
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira