diff --git a/hcatalog/src/test/e2e/templeton/build.xml b/hcatalog/src/test/e2e/templeton/build.xml index b858ca3..e952c81 100644 --- a/hcatalog/src/test/e2e/templeton/build.xml +++ b/hcatalog/src/test/e2e/templeton/build.xml @@ -125,8 +125,8 @@ - - + + diff --git a/hcatalog/src/test/e2e/templeton/tests/hcatperms.conf b/hcatalog/src/test/e2e/templeton/tests/hcatperms.conf index d4a525c..9b6d71f 100644 --- a/hcatalog/src/test/e2e/templeton/tests/hcatperms.conf +++ b/hcatalog/src/test/e2e/templeton/tests/hcatperms.conf @@ -170,7 +170,7 @@ $cfg = { - #check default db permissions + #check db permissions #the default group is currently the group of parent dir 'num' => 5, @@ -188,7 +188,7 @@ $cfg = 'url' => ':TEMPLETON_URL:/templeton/v1/ddl/database/hcatperms_e', 'user_name' => ':UNAME:', 'format_header' => 'Content-Type: application/json', - 'post_options' => ['{}'] + 'post_options' => ['{ "permissions" : "rwx------" }'] } ], @@ -677,7 +677,7 @@ $cfg = 'format_header' => 'Content-Type: application/json', 'user_name' => ':UNAME_OTHER:', 'status_code' => 500, - 'json_field_substr_match' => {'error' => 'unable to show tables'}, + 'json_field_substr_match' => {'error' => 'FAILED: AuthorizationException .*\.security\.AccessControlException: action READ not permitted on path .* for user :UNAME_OTHER:'}, }, @@ -868,7 +868,7 @@ $cfg = }, { - #check default permissions + #check permissions #the default group is currently the group of parent dir 'num' => 2, 'setup' => [ @@ -883,7 +883,7 @@ $cfg = 'method' => 'PUT', 'url' => ':TEMPLETON_URL:/templeton/v1/ddl/database/default/table/permstable_:TNUM:', 'format_header' => 'Content-Type: application/json', - 'post_options' => ['{ "columns": [ { "name" : "i", "type" : "int" } ],"format" : { "storedAs" : "rcfile"} }'], + 'post_options' => ['{ "columns": [ { "name" : "i", "type" : "int" } ],"format" : { "storedAs" : "rcfile"}, "permissions" : "rwx------" }'], 'user_name' => ':UNAME:', 'status_code' => 200, }