Commit 5f50df51 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Context:

- cosmetic changes
- activated correct events to collect for device unitary test
parent b29a7438
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -14,7 +14,8 @@

import copy, grpc, pytest, time
from common.proto.context_pb2 import (
    Context, ContextEvent, ContextId, Device, DeviceDriverEnum, DeviceEvent, DeviceId, DeviceOperationalStatusEnum, Empty, EventTypeEnum, Topology, TopologyEvent, TopologyId)
    Context, ContextEvent, ContextId, Device, DeviceDriverEnum, DeviceEvent, DeviceId, DeviceOperationalStatusEnum,
    Empty, EventTypeEnum, Topology, TopologyEvent, TopologyId)
from context.client.ContextClient import ContextClient
from context.service.database.uuids.Device import device_get_uuid
from context.client.EventsCollector import EventsCollector
@@ -26,7 +27,7 @@ def test_device(context_client : ContextClient) -> None:
    # ----- Initialize the EventsCollector -----------------------------------------------------------------------------
    events_collector = EventsCollector(
        context_client, log_events_received=True,
        activate_context_collector = False, activate_topology_collector = False, activate_device_collector = True,
        activate_context_collector = True, activate_topology_collector = True, activate_device_collector = True,
        activate_link_collector = False, activate_service_collector = False, activate_slice_collector = False,
        activate_connection_collector = False)
    events_collector.start()
+2 −1
Original line number Diff line number Diff line
@@ -13,7 +13,8 @@
# limitations under the License.

import copy, grpc, pytest, time
from common.proto.context_pb2 import Context, ContextEvent, ContextId, EventTypeEnum, Topology, TopologyEvent, TopologyId
from common.proto.context_pb2 import (
    Context, ContextEvent, ContextId, EventTypeEnum, Topology, TopologyEvent, TopologyId)
from context.client.ContextClient import ContextClient
from context.service.database.uuids.Topology import topology_get_uuid
from context.client.EventsCollector import EventsCollector