Beispiel #1
0
 def test_validate_valid(self):
     conf = {
         'node.properties': {},
         'jvm.config': [],
         'config.properties': {
             'coordinator': 'true',
             'discovery.uri': 'http://uri'
         }
     }
     self.assertEqual(conf, coordinator.validate(conf))
 def test_validate_default(self):
     env.roledefs['coordinator'] = 'localhost'
     env.roledefs['workers'] = ['localhost']
     conf = coordinator.build_defaults()
     self.assertEqual(conf, coordinator.validate(conf))
 def test_validate_valid(self):
     conf = {'node.properties': {},
             'jvm.config': [],
             'config.properties': {'coordinator': 'true',
                                   'discovery.uri': 'http://uri'}}
     self.assertEqual(conf, coordinator.validate(conf))
Beispiel #4
0
 def test_validate_default(self):
     env.roledefs['coordinator'] = 'localhost'
     env.roledefs['workers'] = ['localhost']
     conf = coordinator.build_defaults()
     self.assertEqual(conf, coordinator.validate(conf))
 def test_validate_valid(self):
     conf = {"node.properties": {},
             "jvm.config": [],
             "config.properties": {"coordinator": "true"}}
     self.assertEqual(conf, coordinator.validate(conf))