13 lines
354 B
C++
13 lines
354 B
C++
// Route: GET /restclient/self (REST client self-call)
|
|||
|
|
#include "support/Assert.hpp"
|
||
|
|
|
||
|
|
using namespace molo::example::test;
|
||
|
|
|
||
|
|
int main() {
|
||
|
|
Fixture f;
|
||
|
|
auto res = f.client->get("/restclient/self");
|
||
|
|
check(res.status == 200, "status 200");
|
||
|
|
check(contains(res.body, "\"self_call\":200"), "self call reached 200");
|
||
|
|
return finish("restclient/self");
|
||
|
|
}
|