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

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


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

(Updated 2012-04-30 00:52:34.340837)


Review request for mesos and Charles Reiss.


Changes
-------

*added test and files to Makefile.am
*test json are in string literals now. But should i build the json as 
dictionaries first, and then convert in to string literals using the json 
encoding function. If so, I can place these testcases into a .json file instead.
*displaying the exception when testcases fails


Summary
-------

Python Testcases for webui

*added unit testcases for checking if the webui could break by inputing 
artificial test jsons
*should catch bugs if there syntax issues, or general cases where resources 
doesn't add up correctly
*moved most of the logic out of the bottle .tpl template file and into the 
common webui_lib.py


This addresses bug MESOS-93.
    https://issues.apache.org/jira/browse/MESOS-93


Diffs (updated)
-----

  src/webui/tests/testcases.pyc PRE-CREATION 
  src/webui/tests/run_testcases.sh PRE-CREATION 
  src/webui/tests/testcases.py PRE-CREATION 
  src/webui/slave/index.tpl b2e2097 
  src/webui/tests/run_testcases.py PRE-CREATION 
  src/webui/slave/executor.tpl dd53464 
  src/webui/slave/framework.tpl 9488da5 
  src/webui/master/framework.tpl b29d2da 
  src/webui/master/index.tpl 68ae313 
  src/Makefile.am cd503a8 
  src/webui/common/webui_lib.py 0c56fde 

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


Testing
-------


Thanks,

terencekwt


                
> 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