def setUp(self): super(DevstackEngineTestCase, self).setUp() self.deployment = { 'uuid': 'de641026-dbe3-4abe-844a-ffef930a600a', 'config': SAMPLE_CONFIG, } self.engine = devstack.DevstackEngine(self.deployment)
def setUp(self): super(DevstackEngineTestCase, self).setUp() self.deployment = { 'uuid': str(uuid.uuid4()), 'config': SAMPLE_CONFIG, } self.engine = devstack.DevstackEngine(self.deployment)
def test_invalid_config(self): self.deployment = SAMPLE_CONFIG.copy() self.deployment['config'] = {'type': 42} engine = devstack.DevstackEngine(self.deployment) self.assertRaises(jsonschema.ValidationError, engine.validate)