Files
libnetwork/store_test.go
T
2015-09-17 10:16:34 +08:00

21 lines
453 B
Go

package libnetwork
import (
"testing"
"github.com/docker/libnetwork/config"
)
func TestZooKeeperBackend(t *testing.T) {
testNewController(t, "zk", "127.0.0.1:2181")
}
func testNewController(t *testing.T, provider, url string) error {
netOptions := []config.Option{}
netOptions = append(netOptions, config.OptionKVProvider(provider))
netOptions = append(netOptions, config.OptionKVProviderURL(url))
_, err := New(netOptions...)
return err
}