15 lines
472 B
C++
15 lines
472 B
C++
// Route: GET /supervisor/workers
|
|||
|
|
#include "support/Assert.hpp"
|
||
|
|
|
||
|
|
using namespace molo::example::test;
|
||
|
|
|
||
|
|
int main() {
|
||
|
|
Fixture f;
|
||
|
|
auto res = f.client->get("/supervisor/workers");
|
||
|
|
check(res.status == 200, "status 200");
|
||
|
|
check(contains(res.body, "\"name\":\"mailer\""), "mailer listed");
|
||
|
|
check(contains(res.body, "\"name\":\"indexer\""), "indexer listed");
|
||
|
|
check(contains(res.body, "\"running\":true"), "seed worker runs");
|
||
|
|
return finish("supervisor/workers");
|
||
|
|
}
|