Re: Review Request 43777: Removed unnecessary parameter from validation function.

2016-02-26 Thread Greg Mann

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43777/
---

(Updated Feb. 26, 2016, 5:44 p.m.)


Review request for mesos, Adam B, Jie Yu, Michael Park, and Neil Conway.


Bugs: MESOS-4591
https://issues.apache.org/jira/browse/MESOS-4591


Repository: mesos


Description
---

Removed unnecessary parameter from validation function.

Now that Reserve operations are authorized for particular roles, it is 
unnecessary to pass the framework's role into the validation function for 
Reserve operations. The function previously ensured that a framework could only 
reserve resources for its own role, but this check has been removed. Since this 
check has been removed, the test 
`ReserveOperationValidationTest.NonMatchingRole` is no longer needed and has 
also been removed.


Diffs (updated)
-

  src/master/http.cpp 939fab21a2240de7214ef809a194ffb3837a9f1b 
  src/master/master.cpp 8d6d3c6468c6b85fe09c33cf9747cc3d1f515ab9 
  src/master/validation.hpp 6ec883e7e84162b648c2f04583cc776948b36c0c 
  src/master/validation.cpp b0cc7f7ec75b66246686d1b50a61902f1455e8b6 
  src/tests/master_validation_tests.cpp 
ab2df22f73052f6bd77653e56e7b460b17e7b0be 

Diff: https://reviews.apache.org/r/43777/diff/


Testing
---

This patch removes the test `ReserveOperationValidationTest.NonMatchingRole`, 
as the condition it was testing for is no longer relevant.

Ran `configure && make check` and `configure --enable-libevent --enable-ssl && 
make check` on OSX; all tests passed.


Thanks,

Greg Mann



Re: Review Request 43777: Removed unnecessary parameter from validation function.

2016-02-26 Thread Jie Yu

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43777/#review120891
---


Ship it!




Ship It!

- Jie Yu


On Feb. 24, 2016, 6:41 p.m., Greg Mann wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43777/
> ---
> 
> (Updated Feb. 24, 2016, 6:41 p.m.)
> 
> 
> Review request for mesos, Adam B, Jie Yu, Michael Park, and Neil Conway.
> 
> 
> Bugs: MESOS-4591
> https://issues.apache.org/jira/browse/MESOS-4591
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Removed unnecessary parameter from validation function.
> 
> Now that Reserve operations are authorized for particular roles, it is 
> unnecessary to pass the framework's role into the validation function for 
> Reserve operations. The function previously ensured that a framework could 
> only reserve resources for its own role, but this check has been removed. 
> Since this check has been removed, the test 
> `ReserveOperationValidationTest.NonMatchingRole` is no longer needed and has 
> also been removed.
> 
> 
> Diffs
> -
> 
>   src/master/http.cpp 939fab21a2240de7214ef809a194ffb3837a9f1b 
>   src/master/master.cpp 8d6d3c6468c6b85fe09c33cf9747cc3d1f515ab9 
>   src/master/validation.hpp 6ec883e7e84162b648c2f04583cc776948b36c0c 
>   src/master/validation.cpp b0cc7f7ec75b66246686d1b50a61902f1455e8b6 
>   src/tests/master_validation_tests.cpp 
> ab2df22f73052f6bd77653e56e7b460b17e7b0be 
> 
> Diff: https://reviews.apache.org/r/43777/diff/
> 
> 
> Testing
> ---
> 
> This patch removes the test `ReserveOperationValidationTest.NonMatchingRole`, 
> as the condition it was testing for is no longer relevant.
> 
> Ran `configure && make check` and `configure --enable-libevent --enable-ssl 
> && make check` on OSX; all tests passed.
> 
> 
> Thanks,
> 
> Greg Mann
> 
>



Re: Review Request 43777: Removed unnecessary parameter from validation function.

2016-02-25 Thread Neil Conway

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43777/#review120834
---


Ship it!




Ship It!

- Neil Conway


On Feb. 24, 2016, 6:41 p.m., Greg Mann wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43777/
> ---
> 
> (Updated Feb. 24, 2016, 6:41 p.m.)
> 
> 
> Review request for mesos, Adam B, Jie Yu, Michael Park, and Neil Conway.
> 
> 
> Bugs: MESOS-4591
> https://issues.apache.org/jira/browse/MESOS-4591
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Removed unnecessary parameter from validation function.
> 
> Now that Reserve operations are authorized for particular roles, it is 
> unnecessary to pass the framework's role into the validation function for 
> Reserve operations. The function previously ensured that a framework could 
> only reserve resources for its own role, but this check has been removed. 
> Since this check has been removed, the test 
> `ReserveOperationValidationTest.NonMatchingRole` is no longer needed and has 
> also been removed.
> 
> 
> Diffs
> -
> 
>   src/master/http.cpp 939fab21a2240de7214ef809a194ffb3837a9f1b 
>   src/master/master.cpp 8d6d3c6468c6b85fe09c33cf9747cc3d1f515ab9 
>   src/master/validation.hpp 6ec883e7e84162b648c2f04583cc776948b36c0c 
>   src/master/validation.cpp b0cc7f7ec75b66246686d1b50a61902f1455e8b6 
>   src/tests/master_validation_tests.cpp 
> ab2df22f73052f6bd77653e56e7b460b17e7b0be 
> 
> Diff: https://reviews.apache.org/r/43777/diff/
> 
> 
> Testing
> ---
> 
> This patch removes the test `ReserveOperationValidationTest.NonMatchingRole`, 
> as the condition it was testing for is no longer relevant.
> 
> Ran `configure && make check` and `configure --enable-libevent --enable-ssl 
> && make check` on OSX; all tests passed.
> 
> 
> Thanks,
> 
> Greg Mann
> 
>



Re: Review Request 43777: Removed unnecessary parameter from validation function.

2016-02-24 Thread Greg Mann

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43777/
---

(Updated Feb. 24, 2016, 6:41 p.m.)


Review request for mesos, Adam B, Jie Yu, Michael Park, and Neil Conway.


Changes
---

Rebase.


Bugs: MESOS-4591
https://issues.apache.org/jira/browse/MESOS-4591


Repository: mesos


Description (updated)
---

Removed unnecessary parameter from validation function.

Now that Reserve operations are authorized for particular roles, it is 
unnecessary to pass the framework's role into the validation function for 
Reserve operations. The function previously ensured that a framework could only 
reserve resources for its own role, but this check has been removed. Since this 
check has been removed, the test 
`ReserveOperationValidationTest.NonMatchingRole` is no longer needed and has 
also been removed.


Diffs (updated)
-

  src/master/http.cpp 939fab21a2240de7214ef809a194ffb3837a9f1b 
  src/master/master.cpp 8d6d3c6468c6b85fe09c33cf9747cc3d1f515ab9 
  src/master/validation.hpp 6ec883e7e84162b648c2f04583cc776948b36c0c 
  src/master/validation.cpp b0cc7f7ec75b66246686d1b50a61902f1455e8b6 
  src/tests/master_validation_tests.cpp 
ab2df22f73052f6bd77653e56e7b460b17e7b0be 

Diff: https://reviews.apache.org/r/43777/diff/


Testing (updated)
---

This patch removes the test `ReserveOperationValidationTest.NonMatchingRole`, 
as the condition it was testing for is no longer relevant.

Ran `configure && make check` and `configure --enable-libevent --enable-ssl && 
make check` on OSX; all tests passed.


Thanks,

Greg Mann



Re: Review Request 43777: Removed unnecessary parameter from validation function.

2016-02-22 Thread Greg Mann

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43777/
---

(Updated Feb. 22, 2016, 7:54 p.m.)


Review request for mesos, Adam B, Jie Yu, Michael Park, and Neil Conway.


Changes
---

Removed unnecessary validation test.


Bugs: MESOS-4591
https://issues.apache.org/jira/browse/MESOS-4591


Repository: mesos


Description
---

Removed unnecessary parameter from validation function.

Now that Reserve operations are authorized for particular roles, it is 
unnecessary to pass the framework's role into the validation function for 
Reserve operations. The function previously ensured that a framework could only 
reserve resources for its own role, but this check has been removed.


Diffs (updated)
-

  src/master/http.cpp ae6bc7852202480e58f579a5b48ab5b5e5ff9317 
  src/master/master.cpp b453bc7fca05c192df616b7d80132985b3248547 
  src/master/validation.hpp 380b40279faf180a6f401a5e28280b601dbc648c 
  src/master/validation.cpp 66898e914c7b4ab83c4580be67530f355cfb05ca 
  src/tests/master_validation_tests.cpp 
6fae01fa1833ae05ec82618a4ae28ac5bd275bd5 

Diff: https://reviews.apache.org/r/43777/diff/


Testing
---

Ran `configure && make check` and `configure --enable-libevent --enable-ssl && 
make check` on OSX; all tests passed.


Thanks,

Greg Mann