Fixing issue with querying dag as json

This commit is contained in:
Ian Roddis
2022-01-07 16:13:12 -04:00
parent f9076be081
commit 6ed15b17b2
2 changed files with 2 additions and 1 deletions

View File

@@ -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,

View File

@@ -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()));