Skip to content

Commit 1a23096

Browse files
Add test when table does not exists
1 parent 8a6b2d4 commit 1a23096

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

server/app/src/test/java/io/whitefox/api/deltasharing/server/DeltaSharesApiImplTest.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,23 @@ public void getTableVersionBadTimestamp() {
330330
.statusCode(502);
331331
}
332332

333+
@DisabledOnOs(OS.WINDOWS)
334+
@Test
335+
public void queryNotExistingTable() throws IOException {
336+
given()
337+
.when()
338+
.filter(deltaFilter)
339+
.body("{}")
340+
.header(new Header("Content-Type", "application/json"))
341+
.post(
342+
"delta-api/v1/shares/{share}/schemas/{schema}/tables/{table}/query",
343+
"name",
344+
"default",
345+
"tableThatDoesNotExist")
346+
.then()
347+
.statusCode(404);
348+
}
349+
333350
@DisabledOnOs(OS.WINDOWS)
334351
@Test
335352
public void queryTableCurrentVersion() throws IOException {

0 commit comments

Comments
 (0)