diff --git a/provider/kv_test.go b/provider/kv_test.go index bba8fab47..a6de2742f 100644 --- a/provider/kv_test.go +++ b/provider/kv_test.go @@ -304,7 +304,7 @@ func (s *Mock) Get(key string) (*store.KVPair, error) { return kvPair, nil } } - return nil, nil + return nil, store.ErrKeyNotFound } func (s *Mock) Delete(key string) error { @@ -410,6 +410,14 @@ func TestKVLoadConfig(t *testing.T) { Key: "traefik/backends/backend.with.dot.too/servers/server.with.dot/weight", Value: []byte("0"), }, + { + Key: "traefik/backends/backend.with.dot.too/servers/server.with.dot.without.url", + Value: []byte(""), + }, + { + Key: "traefik/backends/backend.with.dot.too/servers/server.with.dot.without.url/weight", + Value: []byte("0"), + }, }, }, }