TODO(benh): Move this into utils, make more generic, and use in other tests.
| 71 | // TODO(benh): Move this into utils, make more generic, and use in |
| 72 | // other tests. |
| 73 | vector<TaskInfo> createTasks(const Offer& offer) |
| 74 | { |
| 75 | TaskInfo task; |
| 76 | task.set_name("test-task"); |
| 77 | task.mutable_task_id()->set_value("1"); |
| 78 | task.mutable_slave_id()->MergeFrom(offer.slave_id()); |
| 79 | task.mutable_resources()->MergeFrom(offer.resources()); |
| 80 | task.mutable_executor()->MergeFrom(DEFAULT_EXECUTOR_INFO); |
| 81 | |
| 82 | vector<TaskInfo> tasks; |
| 83 | tasks.push_back(task); |
| 84 | |
| 85 | return tasks; |
| 86 | } |
| 87 | |
| 88 | |
| 89 | class TaskStatusUpdateManagerTest: public MesosTest {}; |
no test coverage detected