feat: registry.

This commit is contained in:
Bobo
2025-06-02 08:36:25 +08:00
parent 22a04344d4
commit a94b15f3f9
11 changed files with 124 additions and 96 deletions

View File

@@ -1,16 +1,20 @@
package nacos
import (
"testing"
"github.com/stretchr/testify/assert"
conf "github.com/tx7do/kratos-bootstrap/api/gen/go/conf/v1"
"testing"
)
func TestNewNacosRegistry(t *testing.T) {
var cfg conf.Registry
cfg.Nacos.Address = "127.0.0.1"
cfg.Nacos.Port = 8848
cfg := conf.Registry{
Nacos: &conf.Registry_Nacos{
Address: "127.0.0.1",
Port: 8848,
},
}
reg := NewRegistry(&cfg)
assert.Nil(t, reg)
assert.NotNil(t, reg)
}