Updated Branches:
  refs/heads/branch-0.8 654510065 -> 5afa8ad0a

Fix unit test for WHIRR-665.


Project: http://git-wip-us.apache.org/repos/asf/whirr/repo
Commit: http://git-wip-us.apache.org/repos/asf/whirr/commit/5afa8ad0
Tree: http://git-wip-us.apache.org/repos/asf/whirr/tree/5afa8ad0
Diff: http://git-wip-us.apache.org/repos/asf/whirr/diff/5afa8ad0

Branch: refs/heads/branch-0.8
Commit: 5afa8ad0aa7aadfab85dae7db9c164f760906b15
Parents: 6545100
Author: Tom White <tomwh...@apache.org>
Authored: Mon Oct 8 15:20:21 2012 +0100
Committer: Tom White <tomwh...@apache.org>
Committed: Mon Oct 8 15:20:41 2012 +0100

----------------------------------------------------------------------
 .../test/java/org/apache/whirr/util/UtilsTest.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/whirr/blob/5afa8ad0/core/src/test/java/org/apache/whirr/util/UtilsTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/whirr/util/UtilsTest.java 
b/core/src/test/java/org/apache/whirr/util/UtilsTest.java
index 109bb68..18d102d 100644
--- a/core/src/test/java/org/apache/whirr/util/UtilsTest.java
+++ b/core/src/test/java/org/apache/whirr/util/UtilsTest.java
@@ -36,13 +36,14 @@ import com.google.common.collect.ImmutableSet;
 public class UtilsTest {
 
   public static final String EXPECTED_SSH_COMMAND = "\nYou can log into 
instances using the following ssh commands:\n"
-      + "'ssh -i /test/key/path -o \"UserKnownHostsFile /dev/null\" -o 
StrictHostKeyChecking=no test-identity@test-public-ip'\n";
+      + "[test-role]: ssh -i /test/key/path -o \"UserKnownHostsFile 
/dev/null\" -o StrictHostKeyChecking=no test-identity@test-public-ip\n";
 
   @Test
   public void testPrintAccess() {
     final Instance instance = mock(Instance.class);
 
     when(instance.getPublicIp()).thenReturn("test-public-ip");
+    when(instance.getRoles()).thenReturn(ImmutableSet.of("test-role"));
 
     Cluster cluster = mock(Cluster.class);
 

Reply via email to