> On April 29, 2016, 11:20 a.m., Benjamin Bannier wrote: > > src/tests/master_authorization_tests.cpp, line 1024 > > <https://reviews.apache.org/r/46784/diff/1/?file=1364768#file1364768line1024> > > > > This looks very similar to the `SlaveEndpointTest` suite ;) Should we > > just also make this parameterized from the start? > > Jan Schlicht wrote: > I would like to, but unfortunately a parameterized test in GTest needs at > least two values, at this point we have only one. It doesn't compile with a > single parameter.
Hmm, it looks like this should work it you give it values of the right type, i.e., pass `std::string` instead of a string literal to `::testing::Values` when instantiating the test case with `INSTANTIATE_TEST_CASE_P`. - Benjamin ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/46784/#review131062 ----------------------------------------------------------- On April 29, 2016, 11:49 a.m., Jan Schlicht wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/46784/ > ----------------------------------------------------------- > > (Updated April 29, 2016, 11:49 a.m.) > > > Review request for mesos, Alexander Rukletsov and Benjamin Bannier. > > > Bugs: MESOS-5297 > https://issues.apache.org/jira/browse/MESOS-5297 > > > Repository: mesos > > > Description > ------- > > Access to the '/flags' endpoint is authorized using > the 'GET_ENDPOINT_WITH_PATH' action. > > > Diffs > ----- > > src/master/http.cpp 4f489fb9e5bc77b839cc4a44d7ec36af06f73e4a > src/master/master.hpp 3e55114ee7866e06513071e86e15608099dae052 > src/tests/master_authorization_tests.cpp > 804b39a269c09df9f6c0bbdf6f8b53921ac09ce8 > > Diff: https://reviews.apache.org/r/46784/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Jan Schlicht > >