Esempio n. 1
0
 def test_invalid_config(self):
     self.deployment["config"]["admin"] = 42
     engine = existing.ExistingCloud(self.deployment)
     self.assertRaises(jsonschema.ValidationError,
                       engine.validate)
Esempio n. 2
0
 def test_cleanup(self):
     existing.ExistingCloud(self.deployment).cleanup()
Esempio n. 3
0
 def test_init(self):
     existing.ExistingCloud(self.deployment)
Esempio n. 4
0
 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())