1
0
Fork 0

refactor: Mesos labels.

This commit is contained in:
Fernandez Ludovic 2018-03-29 00:01:24 +02:00 committed by Traefiker Bot
parent ff61cc971e
commit 4b93d040b3
11 changed files with 969 additions and 1137 deletions

View file

@ -48,6 +48,14 @@ func TestBuilder(t *testing.T) {
assert.Equal(t, expected, result)
}
func aTaskData(id string, ops ...func(*state.Task)) taskData {
ts := &state.Task{ID: id}
for _, op := range ops {
op(ts)
}
return taskData{Task: *ts, TraefikLabels: extractLabels(*ts)}
}
func aTask(id string, ops ...func(*state.Task)) state.Task {
ts := &state.Task{ID: id}
for _, op := range ops {