You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by th...@apache.org on 2013/10/08 04:28:00 UTC
svn commit: r1530136 -
/hive/trunk/hcatalog/src/test/e2e/templeton/tests/doas.conf
Author: thejas
Date: Tue Oct 8 02:27:59 2013
New Revision: 1530136
URL: http://svn.apache.org/r1530136
Log:
HIVE-5480: WebHCat e2e tests for doAs feature are failing (Deepesh Khandelwal via Thejas Nair)
Modified:
hive/trunk/hcatalog/src/test/e2e/templeton/tests/doas.conf
Modified: hive/trunk/hcatalog/src/test/e2e/templeton/tests/doas.conf
URL: http://svn.apache.org/viewvc/hive/trunk/hcatalog/src/test/e2e/templeton/tests/doas.conf?rev=1530136&r1=1530135&r2=1530136&view=diff
==============================================================================
--- hive/trunk/hcatalog/src/test/e2e/templeton/tests/doas.conf (original)
+++ hive/trunk/hcatalog/src/test/e2e/templeton/tests/doas.conf Tue Oct 8 02:27:59 2013
@@ -104,12 +104,12 @@ $cfg =
{
#descbe the table (as the table owner but using doAs)
- #this should succeed (it seems reading metadata is allowed even if reading data is not)
+ #this should fail when using StorageBasedAuthorizationProvider
'num' => 6,
'method' => 'GET',
'url' => ':TEMPLETON_URL:/templeton/v1/ddl/database/default/table/:UNAME:_doastab2/partition?user.name=:UNAME:?doAs=:DOAS:',
- 'status_code' => 200,
- 'json_field_substr_match' => {'database' => 'default', 'table' => ':UNAME:_doastab2'},
+ 'status_code' => 500,
+ 'json_field_substr_match' => {'error' => 'FAILED: AuthorizationException java\.security\.AccessControlException: action READ not permitted on path .* for user :UNAME:\?doAs=:DOAS:'},
},
{
@@ -118,7 +118,7 @@ $cfg =
'method' => 'DELETE',
'url' => ':TEMPLETON_URL:/templeton/v1/ddl/database/default/table/:UNAME:_doastab2?user.name=:UNAME:&doAs=:DOAS:',
'status_code' => 500,
- 'json_field_substr_match' => {'error' => 'FAILED: Execution Error, return code 1 from org\.apache\.hadoop\.hive\.ql\.exec\.DDLTask\. MetaException\(message:java\.security\.AccessControlException: action WRITE not permitted on path.* for user :DOAS:\)'},
+ 'json_field_substr_match' => {'error' => 'Authorization failed:java\.security\.AccessControlException: action WRITE not permitted on path .* for user :DOAS:'},
},
{
#descbe the table....