15 lines
445 B
C++
15 lines
445 B
C++
// Route: GET /streaming/passthrough
|
|||
|
|
#include "support/Assert.hpp"
|
||
|
|
|
||
|
|
using namespace molo::example::test;
|
||
|
|
|
||
|
|
int main() {
|
||
|
|
Fixture f;
|
||
|
|
auto res = f.client->get("/streaming/passthrough?target=/health");
|
||
|
|
check(res.status == 200, "status 200");
|
||
|
|
check(contains(res.body, "passthrough from /health"),
|
||
|
|
"upstream named");
|
||
|
|
check(contains(res.body, "\"status\":\"ok\""), "upstream body relayed");
|
||
|
|
return finish("streaming/passthrough");
|
||
|
|
}
|