Cluster template cleanup
[snaps.git] / snaps / openstack / utils / tests / magnum_utils_tests.py
index 766e3f2..f841c48 100644 (file)
@@ -15,7 +15,7 @@
 import logging
 import uuid
 
-from magnumclient.common.apiclient.exceptions import BadRequest, NotFound
+from magnumclient.common.apiclient.exceptions import BadRequest
 
 from snaps.config.cluster_template import (
     ClusterTemplateConfig, ServerType,  ContainerOrchestrationEngine,
@@ -194,18 +194,6 @@ class MagnumUtilsClusterTypeTests(OSComponentTestCase):
             self.cluster_template = magnum_utils.create_cluster_template(
                 self.magnum, config)
 
-    def test_create_cluster_template_bad_kp(self):
-        config = ClusterTemplateConfig(
-            name=self.cluster_type_name,
-            image=self.image_creator.image_settings.name,
-            keypair='foo',
-            external_net=self.ext_net_name,
-            flavor=self.flavor_creator.flavor_settings.name)
-
-        with self.assertRaises(NotFound):
-            self.cluster_template = magnum_utils.create_cluster_template(
-                self.magnum, config)
-
     def test_create_cluster_template_bad_ext_net(self):
         config = ClusterTemplateConfig(
             name=self.cluster_type_name,