fix: invalid label/flag parsing.

This commit is contained in:
Ludovic Fernandez 2019-12-17 16:10:06 +01:00 committed by Traefiker Bot
parent 4d0aee67be
commit 8930236396
2 changed files with 13 additions and 0 deletions

View file

@ -26,6 +26,15 @@ func TestDecodeToNode(t *testing.T) {
in: map[string]string{},
expected: expected{node: nil},
},
{
desc: "invalid label, ending by a dot",
in: map[string]string{
"traefik.http.": "bar",
},
expected: expected{
error: true,
},
},
{
desc: "level 1",
in: map[string]string{