feat: registry.
This commit is contained in:
23
registry/polaris/client_creator_test.go
Normal file
23
registry/polaris/client_creator_test.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package polaris
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
conf "github.com/tx7do/kratos-bootstrap/api/gen/go/conf/v1"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNewPolarisRegistry(t *testing.T) {
|
||||
cfg := conf.Registry{
|
||||
Polaris: &conf.Registry_Polaris{
|
||||
Address: "127.0.0.1",
|
||||
Port: 8091,
|
||||
InstanceCount: 5,
|
||||
Namespace: "default",
|
||||
Service: "DiscoverEchoServer",
|
||||
Token: "",
|
||||
},
|
||||
}
|
||||
|
||||
reg := NewRegistry(&cfg)
|
||||
assert.NotNil(t, reg)
|
||||
}
|
||||
Reference in New Issue
Block a user