SLIDER-782 funtest for slider application API
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/73e16399 Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/73e16399 Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/73e16399 Branch: refs/heads/develop Commit: 73e163998596a9f3acc2ea8f740054c2a9b3434c Parents: b0963bd Author: Steve Loughran <ste...@apache.org> Authored: Fri Jan 23 12:45:52 2015 +0000 Committer: Steve Loughran <ste...@apache.org> Committed: Fri Jan 23 12:45:52 2015 +0000 ---------------------------------------------------------------------- .../funtest/lifecycle/AgentWebPagesIT.groovy | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/73e16399/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AgentWebPagesIT.groovy ---------------------------------------------------------------------- diff --git a/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AgentWebPagesIT.groovy b/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AgentWebPagesIT.groovy index 2d1c863..fd54b55 100644 --- a/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AgentWebPagesIT.groovy +++ b/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/AgentWebPagesIT.groovy @@ -24,6 +24,7 @@ import org.apache.hadoop.security.UserGroupInformation import org.apache.hadoop.yarn.webapp.ForbiddenException import org.apache.slider.agent.rest.JerseyTestDelegates import org.apache.slider.agent.rest.RestTestDelegates +import org.apache.slider.agent.rest.SliderRestClientTestDelegates import org.apache.slider.common.SliderExitCodes import org.apache.slider.common.SliderXmlConfKeys import org.apache.slider.common.params.Arguments @@ -126,7 +127,22 @@ public class AgentWebPagesIT extends AgentCommandTestBase new JerseyTestDelegates(directAM, createUGIJerseyClient()) directJerseyTests.testSuiteGetOperations() directJerseyTests.testSuiteComplexVerbs() - + + describe "Proxy SliderRestClient Tests" + SliderRestClientTestDelegates proxySliderRestClient = + new SliderRestClientTestDelegates(proxyAM, createUGIJerseyClient()) + proxySliderRestClient.testSuiteGetOperations() + if (!wsBackDoorRequired) { + proxySliderRestClient.testSuiteComplexVerbs() + } + describe "Direct SliderRestClient Tests" + SliderRestClientTestDelegates directSliderRestClient = + new SliderRestClientTestDelegates(directAM, createUGIJerseyClient()) + directSliderRestClient.testSuiteGetOperations() + directSliderRestClient.testSuiteComplexVerbs() + + + if (UserGroupInformation.securityEnabled) { describe "Insecure Proxy Tests against a secure cluster"