hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From the...@apache.org
Subject [2/2] hive git commit: HIVE-16673 : Test for HIVE-16413 (Zoltan Haindrich via Thejas Nair)
Date Wed, 24 May 2017 19:32:55 GMT
HIVE-16673 : Test for HIVE-16413 (Zoltan Haindrich via Thejas Nair)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/07522ad5
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/07522ad5
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/07522ad5

Branch: refs/heads/branch-1
Commit: 07522ad5b47cc3af78c3f73fa86f08d11caae44f
Parents: fb66b84
Author: Zoltan Haindrich <kirk@rxd.hu>
Authored: Wed May 24 12:00:06 2017 -0700
Committer: Thejas M Nair <thejas@hortonworks.com>
Committed: Wed May 24 12:29:32 2017 -0700

----------------------------------------------------------------------
 itests/src/test/resources/testconfiguration.properties   |  4 +++-
 ql/src/test/queries/clientnegative/ct_noperm_loc.q       | 11 +++++++++++
 ql/src/test/queries/clientnegative/ctas_noperm_loc.q     | 11 +++++++++++
 ql/src/test/results/clientnegative/ct_noperm_loc.q.out   |  1 +
 ql/src/test/results/clientnegative/ctas_noperm_loc.q.out |  1 +
 5 files changed, 27 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/07522ad5/itests/src/test/resources/testconfiguration.properties
----------------------------------------------------------------------
diff --git a/itests/src/test/resources/testconfiguration.properties b/itests/src/test/resources/testconfiguration.properties
index e51399b..5613460 100644
--- a/itests/src/test/resources/testconfiguration.properties
+++ b/itests/src/test/resources/testconfiguration.properties
@@ -582,7 +582,9 @@ minimr.query.negative.files=cluster_tasklog_retrieval.q,\
   mapreduce_stack_trace_turnoff_hadoop20.q,\
   minimr_broken_pipe.q,\
   table_nonprintable_negative.q,\
-  udf_local_resource.q
+  udf_local_resource.q,\
+  ct_noperm_loc.q,\
+  ctas_noperm_loc.q
 
 # tests are sorted use: perl -pe 's@\\\s*\n@ @g' testconfiguration.properties \
 # | awk -F= '/spark.query.files/{print $2}' | perl -pe 's@.q *, *@\n@g' \

http://git-wip-us.apache.org/repos/asf/hive/blob/07522ad5/ql/src/test/queries/clientnegative/ct_noperm_loc.q
----------------------------------------------------------------------
diff --git a/ql/src/test/queries/clientnegative/ct_noperm_loc.q b/ql/src/test/queries/clientnegative/ct_noperm_loc.q
new file mode 100644
index 0000000..9ccca56
--- /dev/null
+++ b/ql/src/test/queries/clientnegative/ct_noperm_loc.q
@@ -0,0 +1,11 @@
+set hive.test.authz.sstd.hs2.mode=true;
+set hive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactoryForTest;
+set hive.security.authenticator.manager=org.apache.hadoop.hive.ql.security.SessionStateConfigUserAuthenticator;
+set hive.security.authorization.enabled=true;
+
+dfs ${system:test.dfs.mkdir} hdfs:///tmp/ct_noperm_loc;
+
+set user.name=user1;
+
+create table foo0(id int) location 'hdfs:///tmp/ct_noperm_loc_foo0';
+create table foo1 location 'hdfs:///tmp/ct_noperm_loc/foo1';

http://git-wip-us.apache.org/repos/asf/hive/blob/07522ad5/ql/src/test/queries/clientnegative/ctas_noperm_loc.q
----------------------------------------------------------------------
diff --git a/ql/src/test/queries/clientnegative/ctas_noperm_loc.q b/ql/src/test/queries/clientnegative/ctas_noperm_loc.q
new file mode 100644
index 0000000..9fc3141
--- /dev/null
+++ b/ql/src/test/queries/clientnegative/ctas_noperm_loc.q
@@ -0,0 +1,11 @@
+set hive.test.authz.sstd.hs2.mode=true;
+set hive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactoryForTest;
+set hive.security.authenticator.manager=org.apache.hadoop.hive.ql.security.SessionStateConfigUserAuthenticator;
+set hive.security.authorization.enabled=true;
+
+dfs ${system:test.dfs.mkdir} hdfs:///tmp/ctas_noperm_loc;
+
+set user.name=user1;
+
+create table foo0 location 'hdfs:///tmp/ctas_noperm_loc_foo0' as select 1 as c1;
+create table foo1 location 'hdfs:///tmp/ctas_noperm_loc/foo1' as select 1 as c1;

http://git-wip-us.apache.org/repos/asf/hive/blob/07522ad5/ql/src/test/results/clientnegative/ct_noperm_loc.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/ct_noperm_loc.q.out b/ql/src/test/results/clientnegative/ct_noperm_loc.q.out
new file mode 100644
index 0000000..0b8182a
--- /dev/null
+++ b/ql/src/test/results/clientnegative/ct_noperm_loc.q.out
@@ -0,0 +1 @@
+#### A masked pattern was here ####

http://git-wip-us.apache.org/repos/asf/hive/blob/07522ad5/ql/src/test/results/clientnegative/ctas_noperm_loc.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/ctas_noperm_loc.q.out b/ql/src/test/results/clientnegative/ctas_noperm_loc.q.out
new file mode 100644
index 0000000..0b8182a
--- /dev/null
+++ b/ql/src/test/results/clientnegative/ctas_noperm_loc.q.out
@@ -0,0 +1 @@
+#### A masked pattern was here ####


Mime
View raw message