def test_invalid_config(self): self.deployment["config"]["admin"] = 42 engine = existing.ExistingCloud(self.deployment) self.assertRaises(jsonschema.ValidationError, engine.validate)
def test_cleanup(self): existing.ExistingCloud(self.deployment).cleanup()
def test_init(self): existing.ExistingCloud(self.deployment)
def test_deploy(self): engine = existing.ExistingCloud(self.deployment) endpoints = engine.deploy() admin_endpoint = self.deployment['config']['endpoint'].copy() self.assertEqual(admin_endpoint, endpoints[0].to_dict())