summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/tests/cluster_template_tests.py
diff options
context:
space:
mode:
authorspisarski <s.pisarski@cablelabs.com>2017-11-29 13:11:20 -0700
committerspisarski <s.pisarski@cablelabs.com>2017-11-29 13:11:20 -0700
commit43151f4e44e64b8436bed234f2dcb60dfc643687 (patch)
tree95c1e6c9838f9ae8d86a3111061d0163a8a10f72 /snaps/openstack/tests/cluster_template_tests.py
parent530ca566f0554d69ac11dd3b919be25c2e689ed6 (diff)
Cluster template cleanup
Removal of negative tests where an invalid keypair is being configured. This test was not operating consistently between pods Update testing documentation Updated some invalid class names in pydoc Change-Id: I7a392e9ed993450de40a20457044ba8294d45044 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/openstack/tests/cluster_template_tests.py')
-rw-r--r--snaps/openstack/tests/cluster_template_tests.py21
1 files changed, 1 insertions, 20 deletions
diff --git a/snaps/openstack/tests/cluster_template_tests.py b/snaps/openstack/tests/cluster_template_tests.py
index 791ace2..355467d 100644
--- a/snaps/openstack/tests/cluster_template_tests.py
+++ b/snaps/openstack/tests/cluster_template_tests.py
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-from magnumclient.common.apiclient.exceptions import BadRequest, NotFound
+from magnumclient.common.apiclient.exceptions import BadRequest
from snaps.config.cluster_template import ClusterTemplateConfig
from snaps.config.flavor import FlavorConfig
@@ -241,25 +241,6 @@ class CreateClusterTemplateTests(OSIntegrationTestCase):
with self.assertRaises(BadRequest):
self.cluster_template_creator.create()
- def test_create_cluster_template_bad_keypair(self):
- """
- Tests the creation of an OpenStack cluster template raises an
- exception with an invalid keypair.
- """
- # Create ClusterTemplate
- cluster_template_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)
-
- self.cluster_template_creator = OpenStackClusterTemplate(
- self.os_creds, cluster_template_config)
-
- with self.assertRaises(NotFound):
- self.cluster_template_creator.create()
-
def test_create_cluster_template_bad_network_driver(self):
"""
Tests the creation of an OpenStack cluster template raises an