File tree Expand file tree Collapse file tree
paimon-core/src/test/java/org/apache/paimon/rest Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040import org .apache .paimon .reader .RecordReader ;
4141import org .apache .paimon .rest .auth .DLFToken ;
4242import org .apache .paimon .rest .exceptions .BadRequestException ;
43+ import org .apache .paimon .rest .exceptions .ForbiddenException ;
4344import org .apache .paimon .rest .responses .ConfigResponse ;
4445import org .apache .paimon .schema .Schema ;
4546import org .apache .paimon .schema .SchemaChange ;
@@ -306,9 +307,7 @@ void testApiWhenTableNoPermission() throws Exception {
306307 assertThrows (
307308 Catalog .TableNoPermissionException .class ,
308309 () -> restCatalog .fastForward (identifier , "test_branch" ));
309- assertThrows (
310- Catalog .TableNoPermissionException .class ,
311- () -> restCatalog .api ().loadTableToken (identifier ));
310+ assertThrows (ForbiddenException .class , () -> restCatalog .api ().loadTableToken (identifier ));
312311 assertThrows (
313312 Catalog .TableNoPermissionException .class ,
314313 () -> restCatalog .loadSnapshot (identifier ));
You can’t perform that action at this time.
0 commit comments