Exemple #1
0
 def setUp(self):
     self._path = os.path.join(_KANZO_PATH, 'kanzo/tests/test_config.txt')
     meta = meta_builder([sql])
     meta.update({
         'default1/var': {
             'default': '3'
         },
         'default2/arr': {
             'default': '1,2,3',
             'is_multi': True
         },
         'test/var': {
             'default': '3'
         },
         'test/arr': {
             'default': '1,2,3',
             'is_multi': True
         },
         'test/processor': {
             'processors': [change_processor]
         },
         'test/processor_multi': {
             'processors': [change_processor],
             'is_multi': True
         },
     })
     self._config = Config(self._path, meta)
Exemple #2
0
 def setUp(self):
     if PYTHON == 2:
         super(DroneTestCase, self).setUp()
     else:
         super().setUp()
     self._path = os.path.join(_KANZO_PATH, 'kanzo/tests/test_config.txt')
     meta = meta_builder([sql])
     self._config = Config(self._path, meta)
     self._drone1 = Drone('10.0.0.1', self._config, work_dir=self._tmpdir)
     self._drone2 = Drone('10.0.0.2', self._config, work_dir=self._tmpdir)
     self._drone3 = Drone('10.0.0.3', self._config, work_dir=self._tmpdir)
Exemple #3
0
 def setUp(self):
     self._path = os.path.join(_KANZO_PATH, 'kanzo/tests/test_config.txt')
     meta = meta_builder([sql])
     meta.update({
         'default1/var': {'default': '3'},
         'default2/arr': {'default': '1,2,3', 'is_multi': True},
         'test/var': {'default': '3'},
         'test/arr': {'default': '1,2,3', 'is_multi': True},
         'test/processor': {'processors': [change_processor]},
         'test/processor_multi': {
             'processors': [change_processor], 'is_multi': True
         },
     })
     self._config = Config(self._path, meta)
Exemple #4
0
 def setUp(self):
     super().setUp()
     self._path = os.path.join(_KANZO_PATH, 'kanzo/tests/test_config.txt')
     meta = meta_builder([sql])
     self._messages = []
     self._config = Config(self._path, meta)
     self._drone1 = Drone(
         '10.0.0.1', self._config, self._messages, work_dir=self._tmpdir
     )
     self._drone2 = Drone(
         '10.0.0.2', self._config, self._messages, work_dir=self._tmpdir
     )
     self._drone3 = Drone(
         '10.0.0.3', self._config, self._messages, work_dir=self._tmpdir
     )
Exemple #5
0
 def setUp(self):
     super().setUp()
     self._path = os.path.join(_KANZO_PATH, 'kanzo/tests/test_config.txt')
     meta = meta_builder([sql])
     self._messages = []
     self._config = Config(self._path, meta)
     self._drone1 = Drone('10.0.0.1',
                          self._config,
                          self._messages,
                          work_dir=self._tmpdir)
     self._drone2 = Drone('10.0.0.2',
                          self._config,
                          self._messages,
                          work_dir=self._tmpdir)
     self._drone3 = Drone('10.0.0.3',
                          self._config,
                          self._messages,
                          work_dir=self._tmpdir)