[#5146] fix(core): Support to rename and delete metadata object in the authorization plugin #15693
Annotations
8 errors and 3 warnings
build (8):
task ':authorizations:authorization-ranger:spotlessJavaCheck'#L1
Execution failed for task ':authorizations:authorization-ranger:spotlessJavaCheck':
The following files had format violations:
src/test/java/org/apache/gravitino/authorization/ranger/integration/test/RangerHiveE2EIT.java
@@ -356,17 +356,12 @@
····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_INSERT_TABLE));
····Assertions.assertThrows(
········AccessControlException.class,·()·->·sparkSession.sql(SQL_SELECT_TABLE).collectAsList());
+····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_DROP_TABLE));
+····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_DROP_SCHEMA));
+····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_USE_SCHEMA));
····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_DROP_TABLE));
-····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_DROP_SCHEMA));
-····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_USE_SCHEMA));
-····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_CREATE_SCHEMA));
-····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_CREATE_TABLE));
-
+········AccessControlException.class,·()·->·sparkSession.sql(SQL_CREATE_SCHEMA));
+····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_CREATE_TABLE));
····//·Clean·up
····catalog.asTableCatalog().dropTable(NameIdentifier.of(schemaName,·tableName));
@@ -431,16 +426,12 @@
····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_INSERT_TABLE));
····Assertions.assertThrows(
········AccessControlException.class,·()·->·sparkSession.sql(SQL_SELECT_TABLE).collectAsList());
+····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_DROP_TABLE));
+····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_DROP_SCHEMA));
+····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_USE_SCHEMA));
····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_DROP_TABLE));
-····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_DROP_SCHEMA));
-····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_USE_SCHEMA));
-····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_CREATE_SCHEMA));
-····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_CREATE_TABLE));
+········AccessControlException.class,·()·->·sparkSession.sql(SQL_CREATE_SCHEMA));
+····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_CREATE_TABLE));
····//·Clean·up
····catalog.asTableCatalog().dropTable(NameIdentifier.of(schemaName,·tableName));
@@ -495,16 +486,12 @@
····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_INSERT_TABLE));
····Assertions.assertThrows(
········AccessControlException.class,·()·->·sparkSession.sql(SQL_SELECT_TABLE).collectAsList());
... (40 more lines that didn't fit)
Run './gradlew :authorizations:authorization-ranger:spotlessApply' to fix these violations.
at com.diffplug.gradle.spotless.SpotlessC
|
build (8)
Process completed with exit code 1.
|
build (11)
The job was canceled because "_8" failed.
|
build (11)
The operation was canceled.
|
build (11):
task ':authorizations:authorization-ranger:spotlessJavaCheck'#L1
Execution failed for task ':authorizations:authorization-ranger:spotlessJavaCheck':
The following files had format violations:
src/test/java/org/apache/gravitino/authorization/ranger/integration/test/RangerHiveE2EIT.java
@@ -356,17 +356,12 @@
····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_INSERT_TABLE));
····Assertions.assertThrows(
········AccessControlException.class,·()·->·sparkSession.sql(SQL_SELECT_TABLE).collectAsList());
+····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_DROP_TABLE));
+····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_DROP_SCHEMA));
+····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_USE_SCHEMA));
····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_DROP_TABLE));
-····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_DROP_SCHEMA));
-····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_USE_SCHEMA));
-····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_CREATE_SCHEMA));
-····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_CREATE_TABLE));
-
+········AccessControlException.class,·()·->·sparkSession.sql(SQL_CREATE_SCHEMA));
+····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_CREATE_TABLE));
····//·Clean·up
····catalog.asTableCatalog().dropTable(NameIdentifier.of(schemaName,·tableName));
@@ -431,16 +426,12 @@
····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_INSERT_TABLE));
····Assertions.assertThrows(
········AccessControlException.class,·()·->·sparkSession.sql(SQL_SELECT_TABLE).collectAsList());
+····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_DROP_TABLE));
+····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_DROP_SCHEMA));
+····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_USE_SCHEMA));
····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_DROP_TABLE));
-····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_DROP_SCHEMA));
-····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_USE_SCHEMA));
-····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_CREATE_SCHEMA));
-····Assertions.assertThrows(
-············AccessControlException.class,·()·->·sparkSession.sql(SQL_CREATE_TABLE));
+········AccessControlException.class,·()·->·sparkSession.sql(SQL_CREATE_SCHEMA));
+····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_CREATE_TABLE));
····//·Clean·up
····catalog.asTableCatalog().dropTable(NameIdentifier.of(schemaName,·tableName));
@@ -495,16 +486,12 @@
····Assertions.assertThrows(AccessControlException.class,·()·->·sparkSession.sql(SQL_INSERT_TABLE));
····Assertions.assertThrows(
········AccessControlException.class,·()·->·sparkSession.sql(SQL_SELECT_TABLE).collectAsList());
... (40 more lines that didn't fit)
Run './gradlew :authorizations:authorization-ranger:spotlessApply' to fix these violations.
at com.diffplug.gradle.spotless.SpotlessC
|
build (11)
Process completed with exit code 1.
|
build (17)
The job was canceled because "_8" failed.
|
build (17)
The operation was canceled.
|
changes
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, dorny/paths-filter@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build (8)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "unit test report".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
unit test report
|
1.25 MB |
|