You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by sm...@apache.org on 2014/10/28 22:45:14 UTC

git commit: SLIDER-573. AgentIT test to include GET of / of web UI

Repository: incubator-slider
Updated Branches:
  refs/heads/develop ff701e2b4 -> dcd63775a


SLIDER-573. AgentIT test to include GET of / of web UI


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

Branch: refs/heads/develop
Commit: dcd63775aaff0694eb916f39c4f4b21859b8ce47
Parents: ff701e2
Author: Sumit Mohanty <sm...@hortonworks.com>
Authored: Tue Oct 28 14:41:43 2014 -0700
Committer: Sumit Mohanty <sm...@hortonworks.com>
Committed: Tue Oct 28 14:41:43 2014 -0700

----------------------------------------------------------------------
 .../apache/slider/funtest/framework/CommandTestBase.groovy  | 9 ++++++++-
 .../slider/funtest/lifecycle/AppsThroughAgentIT.groovy      | 4 ++++
 2 files changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/dcd63775/slider-funtest/src/main/groovy/org/apache/slider/funtest/framework/CommandTestBase.groovy
----------------------------------------------------------------------
diff --git a/slider-funtest/src/main/groovy/org/apache/slider/funtest/framework/CommandTestBase.groovy b/slider-funtest/src/main/groovy/org/apache/slider/funtest/framework/CommandTestBase.groovy
index 004f2da..f3d91d3 100644
--- a/slider-funtest/src/main/groovy/org/apache/slider/funtest/framework/CommandTestBase.groovy
+++ b/slider-funtest/src/main/groovy/org/apache/slider/funtest/framework/CommandTestBase.groovy
@@ -717,8 +717,9 @@ abstract class CommandTestBase extends SliderTestUtils {
             ARG_NAME,
             applicationName,
             ARG_LISTEXP])
-    if (EXIT_SUCCESS != shell.execute())
+    if (EXIT_SUCCESS != shell.execute()) {
       logShell(shell)
+    }
     return EXIT_SUCCESS == shell.execute()
   }
 
@@ -783,6 +784,12 @@ abstract class CommandTestBase extends SliderTestUtils {
     }
   }
 
+  public String getInfoAmWebUrl(String applicationName) {
+    ClusterDescription cd = execStatus(applicationName);
+    String urlString = cd.getInfo("info.am.web.url");
+    return urlString;
+  }
+
   public ClusterDescription execStatus(String application) {
     ClusterDescription cd
     File statusFile = File.createTempFile("status", ".json")

http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/dcd63775/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AppsThroughAgentIT.groovy
----------------------------------------------------------------------
diff --git a/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AppsThroughAgentIT.groovy b/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AppsThroughAgentIT.groovy
index 372a0fa..fd8330b 100644
--- a/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AppsThroughAgentIT.groovy
+++ b/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AppsThroughAgentIT.groovy
@@ -74,6 +74,10 @@ implements FuntestProperties, Arguments, SliderExitCodes, SliderActions {
 
     expectContainersLive(APPLICATION_NAME, COMMAND_LOGGER, 2)
 
+    String amWebUrl = getInfoAmWebUrl(APPLICATION_NAME)
+    log.info("Dumping data from AM Web URL");
+    log.info(amWebUrl.toURL().text);
+
     ensureRegistryCallSucceeds(APPLICATION_NAME)
 
     // get log folders