@@ -2051,6 +2051,26 @@ void testDropEntities() {
20512051 this .dropEntity (List .of (catalog , N5 ), N5_N6 );
20522052 this .dropEntity (List .of (catalog ), N5 );
20532053
2054+ PolarisBaseEntity N7 =
2055+ this .ensureExistsByName (List .of (catalog ), PolarisEntityType .NAMESPACE , "N7" );
2056+ PolarisBaseEntity N7_N8 =
2057+ this .ensureExistsByName (
2058+ List .of (catalog , N7 ),
2059+ PolarisEntityType .NAMESPACE ,
2060+ PolarisEntitySubType .ANY_SUBTYPE ,
2061+ "N8" );
2062+ PolarisBaseEntity POL1 =
2063+ this .ensureExistsByName (List .of (catalog , N7 , N7_N8 ), PolarisEntityType .POLICY , "POL1" );
2064+ PolarisBaseEntity POL2 =
2065+ this .ensureExistsByName (List .of (catalog , N7 , N7_N8 ), PolarisEntityType .POLICY , "POL2" );
2066+ PolarisBaseEntity POL3 =
2067+ this .ensureExistsByName (List .of (catalog , N7 ), PolarisEntityType .POLICY , "POL3" );
2068+ this .dropEntity (List .of (catalog , N7 , N7_N8 ), POL1 );
2069+ this .dropEntity (List .of (catalog , N7 , N7_N8 ), POL2 );
2070+ this .dropEntity (List .of (catalog , N7 ), POL3 );
2071+ this .dropEntity (List .of (catalog , N7 ), N7_N8 );
2072+ this .dropEntity (List .of (catalog ), N7 );
2073+
20542074 // attempt to drop the catalog again, should fail because of role R1
20552075 this .dropEntity (null , catalog );
20562076
0 commit comments