Ejemplo n.º 1
0
 def setUp(self):
     super(DevstackEngineTestCase, self).setUp()
     self.deployment = {
         'uuid': 'de641026-dbe3-4abe-844a-ffef930a600a',
         'config': SAMPLE_CONFIG,
     }
     self.engine = devstack.DevstackEngine(self.deployment)
Ejemplo n.º 2
0
 def setUp(self):
     super(DevstackEngineTestCase, self).setUp()
     self.deployment = {
         'uuid': str(uuid.uuid4()),
         'config': SAMPLE_CONFIG,
     }
     self.engine = devstack.DevstackEngine(self.deployment)
Ejemplo n.º 3
0
 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)