mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix: reject missing Glue table deletes (#1323)
This commit is contained in:
1 parent
5a964e516d
commit
cf761a9698
4 files changed
+21
No files matched your search
@@ -575,6 +575,15 @@ class GlueServiceTest {
|
||||
assertEquals("EntityNotFoundException", ex.getErrorCode());
|
||||
}
|
||||
|
||||
@Test
|
||||
void deleteTableForMissingTableThrows() {
|
||||
AwsException ex = assertThrows(AwsException.class,
|
||||
() -> glueService.deleteTable("db1", "missing_table"));
|
||||
|
||||
assertEquals("EntityNotFoundException", ex.getErrorCode());
|
||||
assertTrue(ex.getMessage().contains("db1.missing_table"));
|
||||
}
|
||||
|
||||
@Test
|
||||
void updateTableWithCurrentVersionIdSucceedsAndIncrementsVersionId() {
|
||||
Table table = new Table();
|
||||
|
||||
Reference in new issue
Block a user