Fixing issue with querying dag as json
This commit is contained in:
@@ -436,8 +436,8 @@ namespace daggy::daggyd {
|
|||||||
<< "</tr>";
|
<< "</tr>";
|
||||||
}
|
}
|
||||||
ss << "</table></center></body></html>";
|
ss << "</table></center></body></html>";
|
||||||
response.send(Pistache::Http::Code::Ok, ss.str());
|
|
||||||
}
|
}
|
||||||
|
response.send(Pistache::Http::Code::Ok, ss.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Server::handleGetDAGRunState(const Pistache::Rest::Request &request,
|
void Server::handleGetDAGRunState(const Pistache::Rest::Request &request,
|
||||||
|
|||||||
@@ -123,6 +123,7 @@ TEST_CASE("rest_endpoint", "[server_basic]")
|
|||||||
for (auto i = 0; i < 10; ++i) {
|
for (auto i = 0; i < 10; ++i) {
|
||||||
auto response =
|
auto response =
|
||||||
HTTP_REQUEST(baseURL + "/v1/dagrun/" + std::to_string(runID));
|
HTTP_REQUEST(baseURL + "/v1/dagrun/" + std::to_string(runID));
|
||||||
|
std::cout << response.body << std::endl;
|
||||||
REQUIRE(response.code == HTTPCode::Ok);
|
REQUIRE(response.code == HTTPCode::Ok);
|
||||||
rj::Document doc;
|
rj::Document doc;
|
||||||
daggy::checkRJParse(doc.Parse(response.body.c_str()));
|
daggy::checkRJParse(doc.Parse(response.body.c_str()));
|
||||||
|
|||||||
Reference in New Issue
Block a user