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/05/07 20:19:55 UTC
svn commit: r1593104 - in /incubator/slider/trunk:
slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/
src/site/markdown/developing/
Author: stevel
Date: Wed May 7 18:19:54 2014
New Revision: 1593104
URL: http://svn.apache.org/r1593104
Log:
SLIDER-5 improve functional testing docs, get tests to recompile after groovy compiler rollback
Modified:
incubator/slider/trunk/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/TestAppsThroughAgent.groovy
incubator/slider/trunk/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/TestClusterBuildDestroy.groovy
incubator/slider/trunk/src/site/markdown/developing/functional_tests.md
Modified: incubator/slider/trunk/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/TestAppsThroughAgent.groovy
URL: http://svn.apache.org/viewvc/incubator/slider/trunk/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/TestAppsThroughAgent.groovy?rev=1593104&r1=1593103&r2=1593104&view=diff
==============================================================================
--- incubator/slider/trunk/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/TestAppsThroughAgent.groovy (original)
+++ incubator/slider/trunk/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/TestAppsThroughAgent.groovy Wed May 7 18:19:54 2014
@@ -20,14 +20,17 @@ package org.apache.slider.funtest.lifecy
import groovy.transform.CompileStatic
import groovy.util.logging.Slf4j
+import org.apache.slider.common.SliderExitCodes
+import org.apache.slider.common.params.Arguments
+import org.apache.slider.common.params.SliderActions
+import org.apache.slider.funtest.framework.FuntestProperties
import org.apache.slider.funtest.framework.SliderShell
import org.junit.Test
@CompileStatic
@Slf4j
public class TestAppsThroughAgent extends AgentCommandTestBase
-// implements FuntestProperties, Arguments, SliderExitCodes, SliderActions
-{
+ implements FuntestProperties, Arguments, SliderExitCodes, SliderActions {
private static String COMMAND_LOGGER = "COMMAND_LOGGER"
private static String APPLICATION_NAME = "agenttst"
Modified: incubator/slider/trunk/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/TestClusterBuildDestroy.groovy
URL: http://svn.apache.org/viewvc/incubator/slider/trunk/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/TestClusterBuildDestroy.groovy?rev=1593104&r1=1593103&r2=1593104&view=diff
==============================================================================
--- incubator/slider/trunk/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/TestClusterBuildDestroy.groovy (original)
+++ incubator/slider/trunk/slider-funtest/src/test/groovy/org/apache/slider/funtest/lifecycle/TestClusterBuildDestroy.groovy Wed May 7 18:19:54 2014
@@ -33,7 +33,8 @@ import org.junit.Test
@CompileStatic
@Slf4j
-public class TestClusterBuildDestroy extends AgentCommandTestBase {
+public class TestClusterBuildDestroy extends AgentCommandTestBase
+ implements FuntestProperties, Arguments, SliderExitCodes, SliderActions {
static String CLUSTER = "test_cluster_build_destroy"
Modified: incubator/slider/trunk/src/site/markdown/developing/functional_tests.md
URL: http://svn.apache.org/viewvc/incubator/slider/trunk/src/site/markdown/developing/functional_tests.md?rev=1593104&r1=1593103&r2=1593104&view=diff
==============================================================================
--- incubator/slider/trunk/src/site/markdown/developing/functional_tests.md (original)
+++ incubator/slider/trunk/src/site/markdown/developing/functional_tests.md Wed May 7 18:19:54 2014
@@ -28,6 +28,7 @@ The functional test suite is designed to
a live cluster.
For these to work you need
+
1. A YARN Cluster -secure or insecure
1. A `slider-client.xml` file configured to interact with the cluster
1. Agent
@@ -38,7 +39,8 @@ directory
## Configuration of functional tests
-Maven needs to be given
+Maven needs to be given
+
1. A path to the expanded test archive
1. A path to a slider configuration directory for the cluster
@@ -109,8 +111,7 @@ need to be changed
There are some maven properties which also define limits and may need adjusting</description>
<value>180000</value>
</property>
-
-
+
Note that while the same properties need to be set in
`slider-core/src/test/resources/slider-client.xml`, those tests take a file in the local
@@ -159,7 +160,6 @@ The HBase tests can be enabled or disabl
Mandatory test parameters must be added to `slider-client.xml`
-
<property>
<name>slider.test.hbase.tar</name>
<description>Path to the HBase Tar file in HDFS</description>
@@ -180,7 +180,6 @@ Optional parameters:
<value>180000</value>
</property>
-
#### Accumulo configuration options
Enable/disable the tests
@@ -191,7 +190,6 @@ Enable/disable the tests
<value>true</value>
</property>
-
Optional parameters
<property>
@@ -200,11 +198,8 @@ Optional parameters
<value>180000</value>
</property>
-
-
### Configuring the YARN cluster for tests
-
Here are the configuration options we use in `yarn-site.xml` for testing:
These tell YARN to ignore memory requirements in allocating VMs, and
@@ -240,7 +235,7 @@ to keep the log files around after an ap
</property>
-### Testing against a secure cluster
+## Testing against a secure cluster
To test against a secure cluster