Esempio n. 1
0
 def test_get_value3(self):
     client = ApolloClient()
     client.init_with_conf()
     name = client.get_value(namespace='mongodb1.yaml',
                             key="name2",
                             default_val="默认值+")
     print name
Esempio n. 2
0
 def test_get_value0(self):
     client = ApolloClient()
     client.init_with_conf()
     path = client.get_value(namespace="redis.json", key='path')
     print path
     self.assertEquals(path, "/usr/alphatest")
Esempio n. 3
0
 def test_get_value1(self):
     client = ApolloClient()
     client.init_with_conf()
     name = client.get_value(namespace='mongodb.yaml', key="name")
     print name
Esempio n. 4
0
 def test_get_value(self):
     client = ApolloClient()
     client.init_with_conf()
     timeout = client.get_value(key='timeout')
     self.assertEquals(timeout, 85)