### _Why are the changes needed?_ - add ut to check generated Ranger policy file in #4585 - manually activated `genpolicy` profile in CI builds, as the property based activation not auto-triggered as expectedly with property `ranger.version=2.4.0` set in project parent pom - Support regenerated policy file within the same test suite, by running `KYUUBI_UPDATE=1 build/mvn clean test -pl :kyuubi-spark-authz_2.12 -Dtest=none -DwildcardSuites=org.apache.kyuubi.plugin.spark.authz.gen.PolicyJsonFileGenerator -Pgenpolicy` ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request Closes #4677 from bowenliang123/authz-check-policy-gen. Closes #4677 a372bdfd4 [liangbowen] remove unnecessary profile used in style workflow 7562c88f2 [liangbowen] include in spotless 37b674223 [liangbowen] update policy id 724ec5e28 [liangbowen] replace counter by using zipWithIndex d322980e7 [liangbowen] extract KRangerPolicyResource object to simplify resource assembly 42c37606a [liangbowen] nit 18a8f4c51 [liangbowen] add usage comments 4ee254d6d [liangbowen] fix issue name in docs d3cb08d21 [liangbowen] improve file reading 37e4c9c9f [Bowen Liang] Merge branch 'master' into authz-check-policy-gen 6366c50e4 [liangbowen] rename profile to `gen-policy` and remove activation rule by property setting 892faf5ef [liangbowen] update clue 266baa71a [liangbowen] update cb94e8014 [liangbowen] update de1f36531 [liangbowen] cleanup e88c75d46 [liangbowen] check policy file gen Lead-authored-by: liangbowen <liangbowen@gf.com.cn> Co-authored-by: Bowen Liang <bowenliang@apache.org> Signed-off-by: liangbowen <liangbowen@gf.com.cn> |
||
|---|---|---|
| .. | ||
| spark | ||
| index.rst | ||