----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/36215/#review90602 -----------------------------------------------------------
Ship it! Thanks isabel, I left some comments and cleaned them up for you, since they are pretty trivial. One follow-up request: We should be rejecting GET requests against the /call endpoint, yes? I've added a TODO for you. src/Makefile.am (line 1468) <https://reviews.apache.org/r/36215/#comment143703> Let's call this http_api_tests? At least, that will give us a place to collect tests specific to the http api, as I imagine that we will want to test http events within the same file. src/master/http.cpp (lines 295 - 301) <https://reviews.apache.org/r/36215/#comment143699> How about a TODO here to provide richer help information? As it is, hard to tell how this relates to the http api, what the request bodies should contain, etc. src/master/master.hpp (lines 1064 - 1066) <https://reviews.apache.org/r/36215/#comment143702> Hm.. not sure this can remain 'const' given it will have to perform non-const operations on the master, but sounds ok for now. src/tests/call_tests.cpp (line 19) <https://reviews.apache.org/r/36215/#comment143708> Need this? src/tests/call_tests.cpp (line 22) <https://reviews.apache.org/r/36215/#comment143709> Need this? I think you need gtest.hpp instead. src/tests/call_tests.cpp (line 26) <https://reviews.apache.org/r/36215/#comment143700> Need this? src/tests/call_tests.cpp (line 31) <https://reviews.apache.org/r/36215/#comment143701> Need this? src/tests/call_tests.cpp (line 56) <https://reviews.apache.org/r/36215/#comment143706> I'm guilty of this too, we don't need the extra space between >> anymore :) src/tests/call_tests.cpp (line 65) <https://reviews.apache.org/r/36215/#comment143698> You don't need this line, the next one captures the expectation that it will become ready. :) - Ben Mahler On July 6, 2015, 6:31 p.m., Isabel Jimenez wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/36215/ > ----------------------------------------------------------- > > (Updated July 6, 2015, 6:31 p.m.) > > > Review request for mesos, Anand Mazumdar, Ben Mahler, Marco Massenzio, and > Vinod Kone. > > > Bugs: MESOS-2860 > https://issues.apache.org/jira/browse/MESOS-2860 > > > Repository: mesos-incubating > > > Description > ------- > > Adding a dummy enpoint for Call requests. > > > Diffs > ----- > > src/Makefile.am addb63f > src/master/http.cpp 2be613b > src/master/master.hpp fb4d6fa > src/master/master.cpp c5a4875 > src/tests/call_tests.cpp PRE-CREATION > > Diff: https://reviews.apache.org/r/36215/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Isabel Jimenez > >