SLIDER-306 list tests
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/47fba9b4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/47fba9b4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/47fba9b4 Branch: refs/heads/develop Commit: 47fba9b46c04a34c5e0466cc47792a8754937cb4 Parents: c4575bd Author: Steve Loughran <[email protected]> Authored: Tue Aug 19 13:15:39 2014 +0100 Committer: Steve Loughran <[email protected]> Committed: Fri Oct 24 21:51:10 2014 +0100 ---------------------------------------------------------------------- .../apache/slider/agent/actions/TestActionList.groovy | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/47fba9b4/slider-core/src/test/groovy/org/apache/slider/agent/actions/TestActionList.groovy ---------------------------------------------------------------------- diff --git a/slider-core/src/test/groovy/org/apache/slider/agent/actions/TestActionList.groovy b/slider-core/src/test/groovy/org/apache/slider/agent/actions/TestActionList.groovy index 4a6b7ca..4b4daf0 100644 --- a/slider-core/src/test/groovy/org/apache/slider/agent/actions/TestActionList.groovy +++ b/slider-core/src/test/groovy/org/apache/slider/agent/actions/TestActionList.groovy @@ -57,7 +57,7 @@ class TestActionList extends AgentMiniClusterTestBase { testListAllUsersNoClusters() testListLiveCluster() testListMissingCluster() -// testActionListHistory() + testActionListHistory() } public void testListThisUserNoClusters() throws Throwable { @@ -151,7 +151,6 @@ class TestActionList extends AgentMiniClusterTestBase { } - @Test public void testActionListHistory() { String clustername = createClusterName() ServiceLauncher<SliderClient> launcher = createStandaloneAM( @@ -173,9 +172,14 @@ class TestActionList extends AgentMiniClusterTestBase { args.live = true; args.history = false; - assert 0 == sliderClient.actionList(clustername, args); + try { + sliderClient.actionList(clustername, args); + fail("expected a failure") + } catch (UnknownApplicationInstanceException e) { + + } - // historical list will work + // historical list will work args.history = true; assert 0 == sliderClient.actionList(clustername, args)
