Skip to content

Commit 45dd562

Browse files
committed
fix test
1 parent f2f64dd commit 45dd562

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

polaris-core/src/testFixtures/java/org/apache/polaris/core/persistence/PolarisTestMetaStoreManager.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)