Skip to content

Commit 6a6b4b9

Browse files
committed
Add permission tests
1 parent 31c3d15 commit 6a6b4b9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

integration-test/src/main/java/com/scalar/db/api/DistributedStorageAdminPermissionIntegrationTestBase.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,17 @@ public void addNewColumnToTable_WithSufficientPermission_ShouldSucceed()
308308
.doesNotThrowAnyException();
309309
}
310310

311+
@Test
312+
public void dropColumnFromTable_WithSufficientPermission_ShouldSucceed()
313+
throws ExecutionException {
314+
// Arrange
315+
createNamespaceByRoot();
316+
createTableByRoot();
317+
// Act Assert
318+
assertThatCode(() -> adminForNormalUser.dropColumnFromTable(NAMESPACE, TABLE, COL_NAME3))
319+
.doesNotThrowAnyException();
320+
}
321+
311322
@Test
312323
public void importTable_WithSufficientPermission_ShouldSucceed() throws Exception {
313324
// Arrange

0 commit comments

Comments
 (0)