You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by st...@apache.org on 2014/11/02 21:21:28 UTC

git commit: SLIDER-602 AgentRegistryIT-testAgentRegistry failing

Repository: incubator-slider
Updated Branches:
  refs/heads/develop f986eb557 -> 333b7ab33


SLIDER-602 AgentRegistryIT-testAgentRegistry failing


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/333b7ab3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/333b7ab3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/333b7ab3

Branch: refs/heads/develop
Commit: 333b7ab33e8461fd0c4dc0f0e857a7b549054685
Parents: f986eb5
Author: Steve Loughran <st...@apache.org>
Authored: Sun Nov 2 20:20:56 2014 +0000
Committer: Steve Loughran <st...@apache.org>
Committed: Sun Nov 2 20:21:10 2014 +0000

----------------------------------------------------------------------
 .../funtest/lifecycle/AgentRegistryIT.groovy      | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/333b7ab3/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AgentRegistryIT.groovy
----------------------------------------------------------------------
diff --git a/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AgentRegistryIT.groovy b/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AgentRegistryIT.groovy
index ee9ef61..96b343f 100644
--- a/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AgentRegistryIT.groovy
+++ b/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AgentRegistryIT.groovy
@@ -82,13 +82,15 @@ public class AgentRegistryIT extends AgentCommandTestBase
 
     // resolve the ~ path
 
-    resolve(0, [ARG_LIST, ARG_PATH, "/"])
-    resolve(0, [ARG_LIST, ARG_PATH, "/users"])
+    resolve(0, [ARG_LIST, ARG_PATH, "/"]).dumpOutput()
+    resolve(0, [ARG_LIST, ARG_PATH, "/users"]).dumpOutput()
 
-    resolve(0, [ARG_LIST, ARG_PATH, TILDE]).dumpOutput()
 
+    def home = homepath()
+    resolve(0, [ARG_LIST, ARG_PATH, home]).dumpOutput()
 
-    String sliderApps = "${TILDE}/services/${SliderKeys.APP_TYPE}"
+
+    String sliderApps = "${home}/services/${SliderKeys.APP_TYPE}"
     resolve(0, [ARG_LIST, ARG_PATH, sliderApps]).dumpOutput()
 
     // running app
@@ -133,4 +135,12 @@ public class AgentRegistryIT extends AgentCommandTestBase
     //cluster now missing
     exists(EXIT_UNKNOWN_INSTANCE, CLUSTER)
   }
+
+  /**
+   * Return the home registry path
+   * @return
+   */
+  public String homepath() {
+    return RegistryUtils.homePathForCurrentUser()
+  }
 }