fix: invalid label/flag parsing.
This commit is contained in:
parent
4d0aee67be
commit
8930236396
2 changed files with 13 additions and 0 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue