[ 
https://issues.apache.org/jira/browse/MESOS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13266782#comment-13266782
 ] 

[email protected] commented on MESOS-93:
----------------------------------------------------



bq.  On 2012-04-20 20:48:34, Charles Reiss wrote:
bq.  > src/webui/common/run_testcases.py, line 20
bq.  > <https://reviews.apache.org/r/4823/diff/1/?file=103457#file103457line20>
bq.  >
bq.  >     Try TestMaster or similar (unless you've integrated a coverage 
analysis).

Done renaming.


bq.  On 2012-04-20 20:48:34, Charles Reiss wrote:
bq.  > src/webui/common/run_testcases.py, line 40
bq.  > <https://reviews.apache.org/r/4823/diff/1/?file=103457#file103457line40>
bq.  >
bq.  >     Include the exception with the failure or rethrow it (and elsewhere).

Done adding what Exception is thrown.


bq.  On 2012-04-20 20:48:34, Charles Reiss wrote:
bq.  > src/webui/common/webui_lib.py, line 87
bq.  > <https://reviews.apache.org/r/4823/diff/1/?file=103459#file103459line87>
bq.  >
bq.  >     I'm guessing this won't handle daylight saving transitions correctly.

Should I just take out the time check then? It is not very crucial anyway to 
check this.


bq.  On 2012-04-20 20:48:34, Charles Reiss wrote:
bq.  > src/webui/master/index.tpl, lines 174-181
bq.  > <https://reviews.apache.org/r/4823/diff/1/?file=103461#file103461line174>
bq.  >
bq.  >     Move logic so we can do framework['max_share']

Logic is moved to webui_lib, and is stored as a list of max_shares.


- terencekwt


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


On 2012-04-30 00:52:34, terencekwt wrote:
bq.  
bq.  -----------------------------------------------------------
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/4823/
bq.  -----------------------------------------------------------
bq.  
bq.  (Updated 2012-04-30 00:52:34)
bq.  
bq.  
bq.  Review request for mesos and Charles Reiss.
bq.  
bq.  
bq.  Summary
bq.  -------
bq.  
bq.  Python Testcases for webui
bq.  
bq.  *added unit testcases for checking if the webui could break by inputing 
artificial test jsons
bq.  *should catch bugs if there syntax issues, or general cases where 
resources doesn't add up correctly
bq.  *moved most of the logic out of the bottle .tpl template file and into the 
common webui_lib.py
bq.  
bq.  
bq.  This addresses bug MESOS-93.
bq.      https://issues.apache.org/jira/browse/MESOS-93
bq.  
bq.  
bq.  Diffs
bq.  -----
bq.  
bq.    src/webui/tests/testcases.pyc PRE-CREATION 
bq.    src/webui/tests/run_testcases.sh PRE-CREATION 
bq.    src/webui/tests/testcases.py PRE-CREATION 
bq.    src/webui/slave/index.tpl b2e2097 
bq.    src/webui/tests/run_testcases.py PRE-CREATION 
bq.    src/webui/slave/executor.tpl dd53464 
bq.    src/webui/slave/framework.tpl 9488da5 
bq.    src/webui/master/framework.tpl b29d2da 
bq.    src/webui/master/index.tpl 68ae313 
bq.    src/Makefile.am cd503a8 
bq.    src/webui/common/webui_lib.py 0c56fde 
bq.  
bq.  Diff: https://reviews.apache.org/r/4823/diff
bq.  
bq.  
bq.  Testing
bq.  -------
bq.  
bq.  
bq.  Thanks,
bq.  
bq.  terencekwt
bq.  
bq.


                
> Add unit tests for webui
> ------------------------
>
>                 Key: MESOS-93
>                 URL: https://issues.apache.org/jira/browse/MESOS-93
>             Project: Mesos
>          Issue Type: Improvement
>          Components: test, webui
>            Reporter: Charles Reiss
>            Assignee: Terence Tam
>              Labels: test, webui
>
> The WebUI should have unit tests. Ideally, these tests should mock out the 
> Master and Slave entirely and thus be pure python tests.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to