feat: registry.
This commit is contained in:
18
registry/zookeeper/client_creator_test.go
Normal file
18
registry/zookeeper/client_creator_test.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package zookeeper
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
conf "github.com/tx7do/kratos-bootstrap/api/gen/go/conf/v1"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNewZooKeeperRegistry(t *testing.T) {
|
||||
cfg := conf.Registry{
|
||||
Zookeeper: &conf.Registry_ZooKeeper{
|
||||
Endpoints: []string{"127.0.0.1:2181"},
|
||||
},
|
||||
}
|
||||
|
||||
reg := NewRegistry(&cfg)
|
||||
assert.NotNil(t, reg)
|
||||
}
|
||||
Reference in New Issue
Block a user