Enable an update test in UT of logging

A logging update test doesn't run in UT. This patch fixes an issue
and enables the test.

Change-Id: I06b8ac72304f03068a92ccb3c0c07a960c7a421a
This commit is contained in:
Hirofumi Ichihara 2017-07-07 12:01:49 +09:00
parent c2e12079f6
commit 5745723971
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ class LogDBObjectTestCase(test_base.BaseDbObjectTestCase,
sg_log.create()
self.assertEqual(port_id, sg_log.target_id)
def _test_update_multiple_fields(self):
def test_update_multiple_log_fields(self):
sg_log = log_res.Log(context=self.context,
id=uuidutils.generate_uuid(),
name='test-create',
@ -73,7 +73,7 @@ class LogDBObjectTestCase(test_base.BaseDbObjectTestCase,
sg_log.create()
fields = {'name': 'test-update', 'description': 'test-update-descr',
'enabled': True}
sg_log.update_fields(**fields)
sg_log.update_fields(fields)
sg_log.update()
new_sg_log = log_res.Log.get_object(self.context, id=sg_log.id)