Adding check for non-existent dagid
This commit is contained in:
@@ -71,6 +71,11 @@ TEST_CASE("rest_endpoint", "[server_basic]") {
|
||||
REQUIRE(response.code() == Pistache::Http::Code::Ok);
|
||||
}
|
||||
|
||||
SECTION ("Querying a non-existent dagrunid should fail ") {
|
||||
auto response = REQUEST(baseURL + "/v1/dagrun/100");
|
||||
REQUIRE(response.code() != Pistache::Http::Code::Ok);
|
||||
}
|
||||
|
||||
SECTION("Simple DAGRun Submission") {
|
||||
std::string dagRun = R"({
|
||||
"name": "unit_server",
|
||||
|
||||
Reference in New Issue
Block a user