예제 #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)
예제 #2
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)