Use first index for ports

This commit is contained in:
Guilhem Lettron 2016-11-02 17:31:27 +01:00
parent 5641af437e
commit 85a20b9a39
4 changed files with 24 additions and 11 deletions

View file

@ -95,7 +95,7 @@ func TestMesosTaskFilter(t *testing.T) {
setLabels("traefik.enable", "true"),
discovery(setDiscoveryPorts("TCP", 80, "WEB HTTP", "TCP", 443, "WEB HTTPS")),
),
expected: false, // more than 1 discovery port but no traefik.port* label
expected: true, // Default to first index
exposedByDefault: true,
},
{