Skip to content
Snippets Groups Projects
Commit 48d12007 authored by yixian.zou@gmail.com's avatar yixian.zou@gmail.com
Browse files

update apollo

parent 89272424
No related branches found
No related tags found
No related merge requests found
......@@ -491,20 +491,20 @@ func Test_startConfigCenter(t *testing.T) {
assert.Equal(t, "ikurento.com", v)
}
func Test_startApolloConfigCenter(t *testing.T) {
c := &BaseConfig{ConfigCenterConfig: &ConfigCenterConfig{
Protocol: "apollo",
Address: "106.12.25.204:8080",
Group: "testApplication_yang",
Cluster: "dev",
ConfigFile: "mockDubbog.properties",
}}
err := c.startConfigCenter(context.Background())
assert.NoError(t, err)
b, v := config.GetEnvInstance().Configuration().Back().Value.(*config.InmemoryConfiguration).GetProperty("application.organization")
assert.True(t, b)
assert.Equal(t, "ikurento.com", v)
}
//func Test_startApolloConfigCenter(t *testing.T) {
// c := &BaseConfig{ConfigCenterConfig: &ConfigCenterConfig{
// Protocol: "apollo",
// Address: "106.12.25.204:8080",
// Group: "testApplication_yang",
// Cluster: "dev",
// ConfigFile: "mockDubbog.properties",
// }}
// err := c.startConfigCenter(context.Background())
// assert.NoError(t, err)
// b, v := config.GetEnvInstance().Configuration().Back().Value.(*config.InmemoryConfiguration).GetProperty("application.organization")
// assert.True(t, b)
// assert.Equal(t, "ikurento.com", v)
//}
func Test_initializeStruct(t *testing.T) {
consumerConfig := &ConsumerConfig{}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment