Files

15 lines
693 B
C++
Raw Permalink Normal View History

// Route: POST /google/enterprise/ces/run
#include "google/enterprise/cases.hpp"
using namespace molo::example::test;
int main() {
const std::string good = "{\"session\":\"projects/p1/locations/us/apps/a1/sessions/s1\",\"text\":\"hello\"}";
check_enterprise_post_route("/google/enterprise/ces/run", good,
"{\"session\":\"projects/p1/locations/us/apps/a1/sessions/s1\",\"text\":\"\"}",
"empty text");
check_enterprise_dry_run("/google/enterprise/ces/run", good,
"ces.us.rep.googleapis.com/v1/projects/p1/locations/us/apps/a1/sessions/s1:runSession");
return finish("google/enterprise/ces_run");
}