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



src/master/http.cpp (line 534)
<https://reviews.apache.org/r/39432/#comment161726>

    Can you add a test for this in master_tests similar to what we did for 
/slaves endpoint?


- Vinod Kone


On Oct. 19, 2015, 6:31 a.m., Guangya Liu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/39432/
> -----------------------------------------------------------
> 
> (Updated Oct. 19, 2015, 6:31 a.m.)
> 
> 
> Review request for mesos and Vinod Kone.
> 
> 
> Bugs: MESOS-3735
>     https://issues.apache.org/jira/browse/MESOS-3735
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Add /master/frameworks to master endpoint
> 
> 
> Diffs
> -----
> 
>   src/master/http.cpp 093f79384916dc08b32b70d3614e0ff314825c42 
>   src/master/master.hpp e7b16fdd21a8caa77a39956a8520cf1381186598 
>   src/master/master.cpp 2cc814721a8c85b330a402b0ec54491a0b0db5aa 
> 
> Diff: https://reviews.apache.org/r/39432/diff/
> 
> 
> Testing
> -------
> 
> gyliu@devstack007:~$ curl "http://9.111.242.187:5050/master/frameworks"; 
> 2>/dev/null| jq .
> {
>   "unregistered_frameworks": [],
>   "frameworks": [
>     {
>       "webui_url": "",
>       "user": "root",
>       "used_resources": {
>         "mem": 256,
>         "disk": 0,
>         "cpus": 1
>       },
>       "unregistered_time": 0,
>       "id": "820e082f-be7c-4b59-abc5-9c02f9e8d66d-0000",
>       "hostname": "devstack007.cn.ibm.com",
>       "failover_timeout": 0,
>       "executors": [],
>       "completed_tasks": [],
>       "checkpoint": false,
>       "capabilities": [],
>       "active": true,
>       "name": "",
>       "offered_resources": {
>         "mem": 0,
>         "disk": 0,
>         "cpus": 0
>       },
>       "offers": [],
>       "pid": 
> "scheduler-43ee3a42-9302-4815-8a07-500e42367f41@9.111.242.187:60454",
>       "registered_time": 1445236263.95058,
>       "resources": {
>         "mem": 256,
>         "disk": 0,
>         "cpus": 1
>       },
>       "role": "*",
>       "tasks": [
>         {
>           "statuses": [
>             {
>               "timestamp": 1445236266.63443,
>               "state": "TASK_RUNNING",
>               "container_status": {
>                 "network_infos": [
>                   {
>                     "ip_address": "9.111.242.187"
>                   }
>                 ]
>               }
>             }
>           ],
>           "state": "TASK_RUNNING",
>           "slave_id": "3e0df733-08b3-4883-b3fa-92bdc0c05b2f-S0",
>           "resources": {
>             "mem": 256,
>             "disk": 0,
>             "cpus": 1
>           },
>           "name": "cluster-test",
>           "id": "cluster-test",
>           "framework_id": "820e082f-be7c-4b59-abc5-9c02f9e8d66d-0000",
>           "executor_id": ""
>         }
>       ]
>     }
>   ],
>   "completed_frameworks": []
> }
> 
> 
> Thanks,
> 
> Guangya Liu
> 
>

Reply via email to