Commit 65fff721 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Integrate minor fix in Service/Monitoring component unitary tests

parent c1e336d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -127,7 +127,6 @@ class MonitoringServiceServicerImpl(monitoring_pb2_grpc.MonitoringServiceService

            #self.influx_db.read_KPI_points()

            return context_pb2.Empty()
        except ServiceException as e:
            LOGGER.exception('IncludeKpi exception')
            # CREATEKPI_COUNTER_FAILED.inc()
@@ -135,6 +134,7 @@ class MonitoringServiceServicerImpl(monitoring_pb2_grpc.MonitoringServiceService
        except Exception as e:  # pragma: no cover
            LOGGER.exception('IncludeKpi exception')
            # CREATEKPI_COUNTER_FAILED.inc()
        return context_pb2.Empty()

    def GetStreamKpi ( self, request, grpc_context : grpc.ServicerContext):
        # receives monitoring.KpiId returns stream monitoring.Kpi
+2 −0
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@ from service.service.service_handlers import SERVICE_HANDLERS
LOGGER = logging.getLogger(__name__)
LOGGER.setLevel(logging.DEBUG)

SERVICE_GRPC_SERVICE_PORT = 10000 + SERVICE_GRPC_SERVICE_PORT # avoid privileged ports

LOCALHOST = '127.0.0.1'
MOCKSERVER_GRPC_PORT = 10000