hutiefang76 commented on code in PR #7555:
URL: https://github.com/apache/kyuubi/pull/7555#discussion_r3603902722
##########
extensions/spark/kyuubi-spark-authz/src/test/scala/org/apache/kyuubi/plugin/spark/authz/ranger/RangerSparkExtensionSuite.scala:
##########
@@ -168,6 +207,20 @@ abstract class RangerSparkExtensionSuite extends
AnyFunSuite
assert(logicalPlan.getTagValue(KYUUBI_AUTHZ_TAG).nonEmpty)
}
+ test("[KYUUBI #2470] RuleAuthorization: trace successful and failed
privilege checks") {
+ val successPlan = spark.sessionState.sqlParser.parsePlan("SHOW TABLES")
+ withPerfLogAppender { appender =>
Review Comment:
Updated to reuse the existing `withLogAppender` implementation. I extracted
the appender helper into a test-only `LogAppenderSuite`, shared by
`KyuubiFunSuite` and the Ranger suite, so the existing Ranger subclasses can
keep their `withFixture` overrides. The appender now captures DEBUG events
explicitly. Spotless and Scalastyle pass, and
`InMemoryCatalogRangerSparkExtensionSuite` passes all 16 tests.
--
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]