[#5146] fix(core): Support to rename and delete metadata object in the authorization plugin #15693
Annotations
4 errors and 1 warning
|
Upload unit tests report
The operation was canceled.
|
Build with Gradle:
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 with Gradle
Process completed with exit code 1.
|
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/
|
Loading