Skip to content

Commit

Permalink
server.tests: Add error test cases when querying the XY 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 21fc54c commit 76b26ba
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,14 @@ public void testHistogramDataProvider() throws InterruptedException {
fail(e.getCause().getMessage());
}
}

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

0 comments on commit 76b26ba

Please sign in to comment.