hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From the...@apache.org
Subject svn commit: r1673976 - in /hive/trunk/ql/src/test: queries/clientnegative/authorization_set_nonexistent_conf.q results/clientnegative/authorization_set_nonexistent_conf.q.out
Date Wed, 15 Apr 2015 22:42:38 GMT
Author: thejas
Date: Wed Apr 15 22:42:37 2015
New Revision: 1673976

URL: http://svn.apache.org/r1673976
Log:
HIVE-10290 : Add negative test case to modify a non-existent config value when hive security
authorization is enabled. (Hari Sankar Sivarama Subramaniyan via Thejas Nair)

Added:
    hive/trunk/ql/src/test/queries/clientnegative/authorization_set_nonexistent_conf.q
    hive/trunk/ql/src/test/results/clientnegative/authorization_set_nonexistent_conf.q.out

Added: hive/trunk/ql/src/test/queries/clientnegative/authorization_set_nonexistent_conf.q
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/queries/clientnegative/authorization_set_nonexistent_conf.q?rev=1673976&view=auto
==============================================================================
--- hive/trunk/ql/src/test/queries/clientnegative/authorization_set_nonexistent_conf.q (added)
+++ hive/trunk/ql/src/test/queries/clientnegative/authorization_set_nonexistent_conf.q Wed
Apr 15 22:42:37 2015
@@ -0,0 +1,7 @@
+set hive.test.authz.sstd.hs2.mode=true;
+set hive.security.authorization.enabled=true;
+set hive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory;
+
+-- run a sql query to initialize authorization, then try setting a non-existent config param
+use default;
+set hive.exec.reduce.max=1;

Added: hive/trunk/ql/src/test/results/clientnegative/authorization_set_nonexistent_conf.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientnegative/authorization_set_nonexistent_conf.q.out?rev=1673976&view=auto
==============================================================================
--- hive/trunk/ql/src/test/results/clientnegative/authorization_set_nonexistent_conf.q.out
(added)
+++ hive/trunk/ql/src/test/results/clientnegative/authorization_set_nonexistent_conf.q.out
Wed Apr 15 22:42:37 2015
@@ -0,0 +1,9 @@
+PREHOOK: query: -- run a sql query to initialize authorization, then try setting a non-existent
config param
+use default
+PREHOOK: type: SWITCHDATABASE
+PREHOOK: Input: database:default
+POSTHOOK: query: -- run a sql query to initialize authorization, then try setting a non-existent
config param
+use default
+POSTHOOK: type: SWITCHDATABASE
+POSTHOOK: Input: database:default
+Query returned non-zero code: 1, cause: hive configuration hive.exec.reduce.max does not
exists.



Mime
View raw message