Merge "Name of the exception is corrected"

This commit is contained in:
Jenkins 2016-08-25 02:52:29 +00:00 committed by Gerrit Code Review
commit f9c0e7a1a6
3 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ class VimDuplicateUrlException(exceptions.TackerException):
"duplicate VIM")
class VimPorjectDomainNameMissingException(exceptions.TackerException):
class VimProjectDomainNameMissingException(exceptions.TackerException):
message = _("'project_domain_name' is missing")

View File

@ -90,7 +90,7 @@ class OpenStack_Driver(abstract_vim_driver.VimAbstractDriver):
auth_cred['project_name'] = vim_project.get('name')
if not vim_project.get('project_domain_name'):
LOG.error(_("'project_domain_name' is missing."))
raise nfvo.VimPorjectDomainNameMissingException()
raise nfvo.VimProjectDomainNameMissingException()
auth_cred['project_domain_name'] = vim_project.get(
'project_domain_name')
if not auth_cred.get('user_domain_name'):

View File

@ -145,7 +145,7 @@ class TestOpenstack_Driver(base.TestCase):
'auth_cred': auth_cred,
'vim_project': {'id': sentinel.prj_id1,
'name': sentinel.prj_name1}}
self.assertRaises(nfvo.VimPorjectDomainNameMissingException,
self.assertRaises(nfvo.VimProjectDomainNameMissingException,
self.openstack_driver.authenticate_vim,
vim_obj)