NFP - Enhanced logging of all nfp components.

Updated logs of all NFP components to have proper log message
and log level so that it will be helpful for user to understand
log message.

Change-Id: I99a23257c98d924e21472b5da9696e9b9393dba2
Co-Authored-By: ashutosh mishra <mca.ashu4@gmail.com>
This commit is contained in:
Mahesh Kurund
2017-01-06 19:45:45 +05:30
committed by Subrahmanyam Ongole
parent 5b06ea0008
commit b52ae6258d
26 changed files with 820 additions and 287 deletions

View File

@@ -88,9 +88,11 @@ class NSORpcHandlerTestCase(NSOModuleTestCase):
def test_rpc_create_network_function(self, mock_create_network_function):
with mock.patch.object(identity_client, "Client"):
self.rpc_handler.create_network_function(
"context", "network_function")
"context", {'resource_owner_context':
{'tenant_id': 'tenant_id'}})
mock_create_network_function.assert_called_once_with(
"context", "network_function")
"context", {'resource_owner_context':
{'tenant_id': 'tenant_id'}})
@mock.patch.object(nso.ServiceOrchestrator,
"get_network_function")
@@ -372,6 +374,7 @@ class ServiceOrchestratorTestCase(NSOModuleTestCase):
'provider': {'pt': None}
}
test_event = Event(data=create_nfi_request)
nfp_logging.store_logging_context(path='create')
self.service_orchestrator.create_network_function_instance(
test_event)