[
https://issues.apache.org/jira/browse/MESOS-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anand Mazumdar updated MESOS-3355:
----------------------------------
Description:
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. We should be
able to use the callback based testing interface from MESOS-3339 and we can
implement 3 new test files like {{tests/fault_tolerance_http_tests.cpp}} etc.
was:
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.
> 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. We should be
> able to use the callback based testing interface from MESOS-3339 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)