From 018bbc09931d45afa349a76fcc72283013e1d3a2 Mon Sep 17 00:00:00 2001 From: Nicolas Liochon Date: Thu, 21 Aug 2014 10:50:14 +0200 Subject: [PATCH] HBASE-4955 Use the official versions of surefire (Alex Newman) --- .../hadoop/hbase/http/TestServletFilter.java | 5 + pom.xml | 211 ++++++++---------- 2 files changed, 102 insertions(+), 114 deletions(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/http/TestServletFilter.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/http/TestServletFilter.java index 986482732e2..631bd09bcd5 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/http/TestServletFilter.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/http/TestServletFilter.java @@ -38,6 +38,7 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.GenericTestUtils; import org.apache.hadoop.hbase.SmallTests; import org.apache.hadoop.net.NetUtils; +import org.junit.Ignore; import org.junit.Test; import org.junit.experimental.categories.Category; @@ -104,6 +105,10 @@ public class TestServletFilter extends HttpServerFunctionalTest { } @Test + @Ignore + //From stack + // Its a 'foreign' test, one that came in from hadoop when we copy/pasted http + // It's second class. Could comment it out if only failing test (as per @nkeywal – sort of) public void testServletFilter() throws Exception { Configuration conf = new Configuration(); diff --git a/pom.xml b/pom.xml index f88b53cab33..84f279d96c5 100644 --- a/pom.xml +++ b/pom.xml @@ -516,13 +516,8 @@ false ${surefire.skipFirstPart} - ${surefire.firstPartForkMode} - ${surefire.firstPartParallel} - false - ${surefire.firstPartThreadCount} - classes - + ${surefire.firstPartForkCount} + false ${surefire.testFailureIgnore} ${surefire.timeout} @@ -539,12 +534,8 @@ ${surefire.skipSecondPart} ${surefire.testFailureIgnore} - ${surefire.secondPartForkMode} - false - ${surefire.secondPartThreadCount} - classes - + false + ${surefire.secondPartForkCount} ${surefire.secondPartGroups} @@ -709,7 +700,7 @@ false - + org.apache.hadoop hadoop-maven-plugins ${hadoop-two.version} @@ -717,7 +708,7 @@ ${protobuf.version} ${protoc.path} - + @@ -782,11 +773,11 @@ runtime - net.sf.xslthl - xslthl - 2.1.0 - runtime - + net.sf.xslthl + xslthl + 2.1.0 + runtime + 1 @@ -816,10 +807,10 @@ ${basedir}/target/docbkx/book - + - + @@ -834,10 +825,10 @@ ${basedir}/target/docbkx/ - + - + @@ -977,16 +968,13 @@ hbase-server-${project.version}-tests.jar hbase-common-${project.version}-tests.jar hbase-it-${project.version}-tests.jar - 2.12-TRUNK-HBASE-2 + 2.17 surefire-junit47 false false - once - classes - perThread - 1 - 2 + 1 + 2 org.apache.hadoop.hbase.SmallTests org.apache.hadoop.hbase.MediumTests false @@ -1081,12 +1069,12 @@ test-jar test - - org.apache.hbase - hbase-testing-util - ${project.version} - test - + + org.apache.hbase + hbase-testing-util + ${project.version} + test + org.apache.hbase hbase-prefix-tree @@ -1586,20 +1574,20 @@ org.apache.hadoop hadoop-hdfs - - - javax.servlet.jsp - jsp-api - - - javax.servlet - servlet-api - - - stax - stax-api - - + + + javax.servlet.jsp + jsp-api + + + javax.servlet + servlet-api + + + stax + stax-api + + ${hadoop-two.version} @@ -1608,20 +1596,20 @@ ${hadoop-two.version} test-jar test - - - javax.servlet.jsp - jsp-api - - - javax.servlet - servlet-api - - - stax - stax-api - - + + + javax.servlet.jsp + jsp-api + + + javax.servlet + servlet-api + + + stax + stax-api + + org.apache.hadoop @@ -1735,9 +1723,7 @@ false - always - none - 1 + 1 @@ -1747,9 +1733,7 @@ false - once - classes - 1 + 1 @@ -1759,9 +1743,7 @@ false - once - none - 1 + 1 false true @@ -1774,9 +1756,7 @@ false - once - none - 1 + 1 false true org.apache.hadoop.hbase.SmallTests @@ -1790,7 +1770,6 @@ false - always false true org.apache.hadoop.hbase.MediumTests @@ -1804,7 +1783,6 @@ false - always false true org.apache.hadoop.hbase.LargeTests @@ -1818,9 +1796,7 @@ false - once - none - 1 + 1 false false org.apache.hadoop.hbase.SmallTests @@ -1834,10 +1810,8 @@ false - once - none - 1 - 5 + 1 + 5 false false org.apache.hadoop.hbase.SmallTests @@ -1854,7 +1828,6 @@ surefire-junit4 - always false true @@ -1955,41 +1928,51 @@ - org.apache.maven.plugins + org.apache.maven.plugins maven-javadoc-plugin 2.9.1 2048m true - - - devapi - aggregate - - devapidocs - - + + + devapi + + + aggregate + + + devapidocs + + - - userapi - aggregate - - org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet - - org.apache.hadoop - - hadoop-common - ${hadoop-two.version} - - apidocs - User API - The HBase Application Programmer's API - - org.apache.hadoop.hbase.backup*:org.apache.hadoop.hbase.catalog:org.apache.hadoop.hbase.client.coprocessor:org.apache.hadoop.hbase.client.metrics:org.apache.hadoop.hbase.codec*:org.apache.hadoop.hbase.constraint:org.apache.hadoop.hbase.coprocessor.*:org.apache.hadoop.hbase.executor:org.apache.hadoop.hbase.fs:org.apache.hadoop.hbase.generated.*:org.apache.hadoop.hbase.io.hfile.*:org.apache.hadoop.hbase.mapreduce.hadoopbackport:org.apache.hadoop.hbase.mapreduce.replication:org.apache.hadoop.hbase.master.*:org.apache.hadoop.hbase.metrics*:org.apache.hadoop.hbase.migration:org.apache.hadoop.hbase.monitoring:org.apache.hadoop.hbase.p*:org.apache.hadoop.hbase.regionserver.compactions:org.apache.hadoop.hbase.regionserver.handler:org.apache.hadoop.hbase.regionserver.snapshot:org.apache.hadoop.hbase.replication.*:org.apache.hadoop.hbase.rest.filter:org.apache.hadoop.hbase.rest.model:org.apache.hadoop.hbase.rest.p*:org.apache.hadoop.hbase.security.*:org.apache.hadoop.hbase.thrift*:org.apache.hadoop.hbase.tmpl.*:org.apache.hadoop.hbase.tool:org.apache.hadoop.hbase.trace:org.apache.hadoop.hbase.util.byterange*:org.apache.hadoop.hbase.util.test:org.apache.hadoop.hbase.util.vint:org.apache.hadoop.hbase.zookeeper.lock:org.apache.hadoop.metrics2* - - - + + userapi + + + aggregate + + + + org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet + + + org.apache.hadoop + + hadoop-common + ${hadoop-two.version} + + apidocs + User API + The HBase Application Programmer's API + + + org.apache.hadoop.hbase.backup*:org.apache.hadoop.hbase.catalog:org.apache.hadoop.hbase.client.coprocessor:org.apache.hadoop.hbase.client.metrics:org.apache.hadoop.hbase.codec*:org.apache.hadoop.hbase.constraint:org.apache.hadoop.hbase.coprocessor.*:org.apache.hadoop.hbase.executor:org.apache.hadoop.hbase.fs:org.apache.hadoop.hbase.generated.*:org.apache.hadoop.hbase.io.hfile.*:org.apache.hadoop.hbase.mapreduce.hadoopbackport:org.apache.hadoop.hbase.mapreduce.replication:org.apache.hadoop.hbase.master.*:org.apache.hadoop.hbase.metrics*:org.apache.hadoop.hbase.migration:org.apache.hadoop.hbase.monitoring:org.apache.hadoop.hbase.p*:org.apache.hadoop.hbase.regionserver.compactions:org.apache.hadoop.hbase.regionserver.handler:org.apache.hadoop.hbase.regionserver.snapshot:org.apache.hadoop.hbase.replication.*:org.apache.hadoop.hbase.rest.filter:org.apache.hadoop.hbase.rest.model:org.apache.hadoop.hbase.rest.p*:org.apache.hadoop.hbase.security.*:org.apache.hadoop.hbase.thrift*:org.apache.hadoop.hbase.tmpl.*:org.apache.hadoop.hbase.tool:org.apache.hadoop.hbase.trace:org.apache.hadoop.hbase.util.byterange*:org.apache.hadoop.hbase.util.test:org.apache.hadoop.hbase.util.vint:org.apache.hadoop.hbase.zookeeper.lock:org.apache.hadoop.metrics2* + + + +