Merge "Name of the exception is corrected"
This commit is contained in:
commit
f9c0e7a1a6
@ -73,7 +73,7 @@ class VimDuplicateUrlException(exceptions.TackerException):
|
||||
"duplicate VIM")
|
||||
|
||||
|
||||
class VimPorjectDomainNameMissingException(exceptions.TackerException):
|
||||
class VimProjectDomainNameMissingException(exceptions.TackerException):
|
||||
message = _("'project_domain_name' is missing")
|
||||
|
||||
|
||||
|
@ -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'):
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user