You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Anand Mazumdar (JIRA)" <ji...@apache.org> on 2015/09/01 21:29:45 UTC

[jira] [Created] (MESOS-3355) Testing the HTTP V1 API

Anand Mazumdar created MESOS-3355:
-------------------------------------

             Summary: Testing the HTTP V1 API
                 Key: MESOS-3355
                 URL: https://issues.apache.org/jira/browse/MESOS-3355
             Project: Mesos
          Issue Type: Task
            Reporter: Anand Mazumdar


Currently, we don't yet have extensive Fault-Tolerance/Partition/Reconciliation tests for the HTTP V1 API. The one's in {{tests/fault_tolerance_tests.cpp, tests/partition_tests.cpp, tests/reconciliation_tests.cpp}} only test the old PID based workflow.

We need to build the functionality for testing the new V1 API. There can be various approaches that can help us achieve the objective:
- Implement a new driver speaking HTTP called {{MesosHTTPSchedulerDriver}} living in {{tests}} folder. We won't expose it to the framework developers and it would be just used for testing.
- Have an environment variable/constructor argument in the existing {{MesosSchedulerDriver}} to make it speak HTTP when the relevant flag is set.
- Modify the tests to use the Scheduler library. This can be a bit cumbersome as the tests have mock expectations etc defined on the old driver callbacks.

All these 3 approaches would still keep the old PID based workflow intact and we can implement 3 new test files like {{tests/fault_tolerance_http_tests.cpp}} etc.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)