Beispiel #1
0
 def test_get_config_by_namespace1(self):
     client = ApolloClient()
     client.init_with_conf()
     all_value = client.get_config_by_namespace(namespace='redis.json')
     print all_value
     self.assertEquals(
         all_value, {
             u'info': {
                 u'timeout': 60,
                 u'size': 1024
             },
             u'path': u'/usr/alphatest',
             u'enabled': True
         })
Beispiel #2
0
 def test_get_config_by_namespace4(self):
     client = ApolloClient()
     client.init_with_conf()
     all_value = client.get_config_by_namespace(namespace='mongodb2.yaml')
     print all_value
Beispiel #3
0
 def test_get_config_by_namespace2(self):
     client = ApolloClient()
     client.init_with_conf()
     all_value = client.get_config_by_namespace()
     print all_value