def test_validate_valid(self): conf = {'node.properties': {}, 'jvm.config': [], 'config.properties': {'coordinator': 'false', 'discovery.uri': 'http://host:8080'}} self.assertEqual(conf, workers.validate(conf))
def test_validate_valid(self): conf = { 'node.properties': {}, 'jvm.config': [], 'config.properties': { 'coordinator': 'false', 'discovery.uri': 'http://host:8080' } } self.assertEqual(conf, workers.validate(conf))
def test_validate_default(self): env.roledefs['coordinator'] = 'localhost' conf = workers.build_defaults() self.assertEqual(conf, workers.validate(conf))