Commit fb20f8f6 authored by francisco.moreno.external@atos.net's avatar francisco.moreno.external@atos.net
Browse files

Minor changes in the test_unitary.py

parent 36af4113
Loading
Loading
Loading
Loading
+14 −14
Original line number Diff line number Diff line
@@ -230,20 +230,20 @@ def test_monitor_kpi(monitoring_client,create_kpi_request):
    assert isinstance(response, context_pb2.Empty)


# Test case that makes use of client fixture to test server's IncludeKpi method
def test_include_kpi(monitoring_client,include_kpi_request):
    # make call to server
    LOGGER.warning('test_include_kpi requesting')
    response = monitoring_client.IncludeKpi(include_kpi_request)
    LOGGER.debug(str(response))
    assert isinstance(response, context_pb2.Empty)

# Test case that makes use of client fixture to test server's GetStreamKpi method
def test_get_stream_kpi(monitoring_client,include_kpi_request):
    LOGGER.warning('test_getstream_kpi begin')
    response = monitoring_client.GetStreamKpi(kpi)
    LOGGER.debug(str(response))
    #assert isinstance(response, monitoring_pb2.Kpi)
# # Test case that makes use of client fixture to test server's IncludeKpi method
# def test_include_kpi(monitoring_client,include_kpi_request):
#     # make call to server
#     LOGGER.warning('test_include_kpi requesting')
#     response = monitoring_client.IncludeKpi(include_kpi_request)
#     LOGGER.debug(str(response))
#     assert isinstance(response, context_pb2.Empty)
#
# # Test case that makes use of client fixture to test server's GetStreamKpi method
# def test_get_stream_kpi(monitoring_client,include_kpi_request):
#     LOGGER.warning('test_getstream_kpi begin')
#     response = monitoring_client.GetStreamKpi(kpi)
#     LOGGER.debug(str(response))
#     #assert isinstance(response, monitoring_pb2.Kpi)

# Test case that makes use of client fixture to test server's GetInstantKpi method
def test_get_instant_kpi(monitoring_client,kpi_id):