feat(constraints): Supports constraints for docker backend

This commit is contained in:
Samuel BERTHE 2016-06-06 21:59:58 +02:00
parent 01ffad2e6e
commit f7224ff403
3 changed files with 25 additions and 4 deletions

View file

@ -621,6 +621,7 @@ func TestDockerGetLabels(t *testing.T) {
}
func TestDockerTraefikFilter(t *testing.T) {
provider := Docker{}
containers := []struct {
container docker.ContainerJSON
expected bool
@ -792,7 +793,7 @@ func TestDockerTraefikFilter(t *testing.T) {
}
for _, e := range containers {
actual := containerFilter(e.container)
actual := provider.ContainerFilter(e.container)
if actual != e.expected {
t.Fatalf("expected %v for %+v, got %+v", e.expected, e, actual)
}