Re: Review Request 70753: Templatized UPDATE_FRAMEWORK test helpers over type of FrameworkInfo.

2019-06-12 Thread Andrei Sekretenko

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

(Updated June 12, 2019, 4:09 p.m.)


Review request for mesos, Benjamin Mahler and Meng Zhu.


Changes
---

Rebased against master; fixed issues.


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


Repository: mesos


Description
---

This patch makes possible to use the same helper functions in tests of
both V1 and V0 UPDATE_FRAMEWORK calls by templatizing them over type of
FrameworkInfo.


Diffs (updated)
-

  src/tests/master/update_framework_tests.cpp 
78304c211c5eb9f50ea629121a6dddfe47942e9f 


Diff: https://reviews.apache.org/r/70753/diff/2/

Changes: https://reviews.apache.org/r/70753/diff/1-2/


Testing
---


Thanks,

Andrei Sekretenko



Re: Review Request 70753: Templatized UPDATE_FRAMEWORK test helpers over type of FrameworkInfo.

2019-06-11 Thread Benjamin Mahler

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


Fix it, then Ship it!




Can you rebase this patch? I can't apply it to make the edits, even with a 3 
way merge.


src/tests/master/update_framework_tests.cpp
Lines 104 (patched)


The next patch doesn't move it out of v1 and removes the TODO? Why is it 
here?



src/tests/master/update_framework_tests.cpp
Lines 146 (patched)


Probably we should stick to the existing naming convention of 
`TFrameworkInfo` , e.g.

https://github.com/apache/mesos/blob/1.8.0/src/tests/mesos.hpp#L508



src/tests/master/update_framework_tests.cpp
Line 170 (original), 174 (patched)


newline



src/tests/master/update_framework_tests.cpp
Lines 179 (patched)


ditto here


- Benjamin Mahler


On May 29, 2019, 6:30 p.m., Andrei Sekretenko wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/70753/
> ---
> 
> (Updated May 29, 2019, 6:30 p.m.)
> 
> 
> Review request for mesos, Benjamin Mahler and Meng Zhu.
> 
> 
> Bugs: MESOS-9793
> https://issues.apache.org/jira/browse/MESOS-9793
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> This patch makes possible to use the same helper functions in tests of
> both V1 and V0 UPDATE_FRAMEWORK calls by templatizing them over type of
> FrameworkInfo.
> 
> 
> Diffs
> -
> 
>   src/tests/master/update_framework_tests.cpp PRE-CREATION 
> 
> 
> Diff: https://reviews.apache.org/r/70753/diff/1/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Andrei Sekretenko
> 
>