Fixing issue with querying dag as json
This commit is contained in:
@@ -436,8 +436,8 @@ namespace daggy::daggyd {
|
||||
<< "</tr>";
|
||||
}
|
||||
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,
|
||||
|
||||
@@ -123,6 +123,7 @@ TEST_CASE("rest_endpoint", "[server_basic]")
|
||||
for (auto i = 0; i < 10; ++i) {
|
||||
auto response =
|
||||
HTTP_REQUEST(baseURL + "/v1/dagrun/" + std::to_string(runID));
|
||||
std::cout << response.body << std::endl;
|
||||
REQUIRE(response.code == HTTPCode::Ok);
|
||||
rj::Document doc;
|
||||
daggy::checkRJParse(doc.Parse(response.body.c_str()));
|
||||
|
||||
Reference in New Issue
Block a user