AngersZhuuuu commented on code in PR #5645:
URL: https://github.com/apache/kyuubi/pull/5645#discussion_r1387413661
##########
extensions/spark/kyuubi-spark-authz/src/test/scala/org/apache/kyuubi/plugin/spark/authz/ranger/RangerSparkExtensionSuite.scala:
##########
@@ -1172,4 +1172,24 @@ class HiveCatalogRangerSparkExtensionSuite extends
RangerSparkExtensionSuite {
}
}
}
+
+ test("CreateDatabaseCommand/AlterDatabaseSetLocationCommand") {
+ val db1 = "db1"
+ withSingleCallEnabled {
+ withTempDir { path1 =>
+ withTempDir { path2 =>
+ withCleanTmpResources(Seq((s"$db1", "database"))) {
+ interceptContains[AccessControlException](
+ doAs(someone, sql(s"CREATE DATABASE $db1 LOCATION '$path1'")))(
Review Comment:
> CREATE DATABASE w/o location clause will not check path privilege, right?
Yea
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]