kv: Add test for server without url key
This commit is contained in:
parent
020a8e31ab
commit
c864d80270
1 changed files with 9 additions and 1 deletions
|
@ -304,7 +304,7 @@ func (s *Mock) Get(key string) (*store.KVPair, error) {
|
||||||
return kvPair, nil
|
return kvPair, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil, nil
|
return nil, store.ErrKeyNotFound
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Mock) Delete(key string) error {
|
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",
|
Key: "traefik/backends/backend.with.dot.too/servers/server.with.dot/weight",
|
||||||
Value: []byte("0"),
|
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"),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue