Skip to content

Commit

Permalink
server.tests: Add error test cases when querying the table endpoints
Browse files Browse the repository at this point in the history
Signed-off-by: Bernd Hufmann <[email protected]>
  • Loading branch information
bhufmann committed Dec 18, 2024
1 parent 4a79b72 commit 21fc54c
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,14 @@ public void testTableDataProvider() throws InterruptedException {
fail(e.getCause().getMessage());
}
}

/**
* Tests error cases when querying arrows for a time graph data provider
*/
@Test
public void testTableErrors() {
ExperimentModelStub exp = assertPostExperiment(sfArm64KernelNotIntitialzedStub.getName(), sfArm64KernelNotIntitialzedStub);
executePostErrorTests(exp, RestServerTest::getTableColumnsEndpoint, EVENTS_TABLE_DATAPROVIDER_ID, false);
executePostErrorTests(exp, RestServerTest::getTableLinesEndpoint, EVENTS_TABLE_DATAPROVIDER_ID, true);
}
}

0 comments on commit 21fc54c

Please sign in to comment.