Merge "API: use baymodel_ident to update a baymodel"

This commit is contained in:
Jenkins 2015-11-17 22:54:31 +00:00 committed by Gerrit Code Review
commit 11dc55da03
1 changed files with 2 additions and 2 deletions

View File

@ -131,12 +131,12 @@ class BayModelTest(base.BaseMagnumTest):
bay_model_client.get_baymodel, 'fooo')
@testtools.testcase.attr('negative')
def test_update_baymodel_invalid_uuid(self):
def test_update_baymodel_name_not_found(self):
patch_model = datagen.random_baymodel_name_patch_data()
bay_model_client = cli.BayModelClient.as_user('default')
self.assertRaises(
exceptions.BadRequest,
exceptions.NotFound,
bay_model_client.patch_baymodel, 'fooo', patch_model)
@testtools.testcase.attr('negative')