You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by an...@apache.org on 2016/08/29 20:10:13 UTC
[4/4] sentry git commit: SENTRY-1429, SENTRY-1455: fix flaky
TestHDFSIntegration, refactor this huge test class, improve its cleanUp and
setUp for temp HDFS dirs;
divide test class into smoke test class and p2 test class;
in post commit run, we will only
SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration, refactor this huge test class, improve its cleanUp and setUp for temp HDFS dirs; divide test class into smoke test class and p2 test class; in post commit run, we will only run smoke tests.
Project: http://git-wip-us.apache.org/repos/asf/sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/sentry/commit/5cfd82d9
Tree: http://git-wip-us.apache.org/repos/asf/sentry/tree/5cfd82d9
Diff: http://git-wip-us.apache.org/repos/asf/sentry/diff/5cfd82d9
Branch: refs/heads/master
Commit: 5cfd82d96e9baef51f7291d48e717c922baf2224
Parents: df2b273
Author: Anne Yu <an...@cloudera.com>
Authored: Fri Aug 26 17:04:19 2016 -0700
Committer: Anne Yu <an...@cloudera.com>
Committed: Mon Aug 29 13:10:29 2016 -0700
----------------------------------------------------------------------
pom.xml | 1 +
.../tests/e2e/hdfs/TestHDFSIntegration.java | 2 +-
.../tests/e2e/hdfs/TestHDFSIntegration.java | 2101 ------------------
.../e2e/hdfs/TestHDFSIntegrationAdvanced.java | 793 +++++++
.../tests/e2e/hdfs/TestHDFSIntegrationBase.java | 778 +++++++
.../e2e/hdfs/TestHDFSIntegrationEnd2End.java | 530 +++++
.../e2e/hdfs/TestHDFSIntegrationWithHA.java | 6 +-
7 files changed, 2106 insertions(+), 2105 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/sentry/blob/5cfd82d9/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index b53e776..4eb7d5f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -976,6 +976,7 @@ limitations under the License.
</systemPropertyVariables>
<excludes combine.children="append">
<exclude>%regex[org.apache.sentry.tests.e2e.dbprovider.*.class]</exclude>
+ <exclude>%regex[org.apache.sentry.tests.e2e.hdfs.TestHDFS.*.class]</exclude>
</excludes>
</configuration>
</plugin>
http://git-wip-us.apache.org/repos/asf/sentry/blob/5cfd82d9/sentry-tests/sentry-tests-hive-v2/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
----------------------------------------------------------------------
diff --git a/sentry-tests/sentry-tests-hive-v2/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java b/sentry-tests/sentry-tests-hive-v2/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
index a2aead0..9b986d7 100644
--- a/sentry-tests/sentry-tests-hive-v2/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
+++ b/sentry-tests/sentry-tests-hive-v2/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
@@ -1007,7 +1007,7 @@ public class TestHDFSIntegration {
miniDFS.getFileSystem().mkdirs(tmpHDFSDir);
}
- miniDFS.getFileSystem().setPermission(tmpHDFSDir, FsPermission.valueOf("drwxrwx---"));
+ miniDFS.getFileSystem().setPermission(tmpHDFSDir, FsPermission.valueOf("drwxrwx--x"));
Path partitionDir = new Path("/tmp/external/p1");
if (!miniDFS.getFileSystem().exists(partitionDir)) {
miniDFS.getFileSystem().mkdirs(partitionDir);