mirror of
https://github.com/containous/traefik.git
synced 2025-01-27 14:03:51 +03:00
kv: Add test for server without url key
This commit is contained in:
parent
020a8e31ab
commit
c864d80270
@ -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"),
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user