From c8e4fd8d6c44c3777b851a20956aabe4518734fd Mon Sep 17 00:00:00 2001 From: houming-wang Date: Wed, 13 Jan 2016 13:12:47 +0800 Subject: [PATCH] Delete negative case of create bay without name After this patch Ic35c411914d81f1521f4b6051497efaf13772b37 is merged. We can successfully create a bay without name. So we can delete this unnecessary negative test case. Change-Id: I98b412727eac6e0ca64a7b9d44f370545e498bf0 Related-Bug: #1532918 --- magnum/tests/functional/api/v1/test_bay.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/magnum/tests/functional/api/v1/test_bay.py b/magnum/tests/functional/api/v1/test_bay.py index 131af1e2f8..88e1e5e217 100644 --- a/magnum/tests/functional/api/v1/test_bay.py +++ b/magnum/tests/functional/api/v1/test_bay.py @@ -134,16 +134,6 @@ class BayTest(base.BaseMagnumTest): exceptions.BadRequest, self.bay_client.post_bay, gen_model) - @testtools.testcase.attr('negative') - def test_create_bay_with_missing_name(self): - self.skipTest('This is currently an error! ' - 'Should throw a 400 instead of a 500') - gen_model = datagen.valid_bay_data(baymodel_id=self.baymodel.uuid, - name=None) - self.assertRaises( - exceptions.BadRequest, - self.bay_client.post_bay, gen_model) - @testtools.testcase.attr('negative') def test_update_bay_name_for_existing_bay(self): first_model = datagen.valid_bay_data(baymodel_id=self.baymodel.uuid,