Updated Branches:
  refs/heads/trunk 36747f34b -> d7e62f389

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/d7e62f38
Tree: http://git-wip-us.apache.org/repos/asf/whirr/tree/d7e62f38
Diff: http://git-wip-us.apache.org/repos/asf/whirr/diff/d7e62f38

Branch: refs/heads/trunk
Commit: d7e62f3894352dae9b1bd797406d4c6929e24446
Parents: 36747f3
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:21 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/d7e62f38/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