Skip to content

Commit

Permalink
UT: Fix imports common.events -> common.agent_events
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyamalviya committed Sep 16, 2022
1 parent 4e3aac2 commit d1654a4
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pydantic import Field

from common.agent_event_serializers import AgentEventSerializerRegistry, IAgentEventSerializer
from common.events import AbstractAgentEvent
from common.agent_events import AbstractAgentEvent


class SomeEvent(AbstractAgentEvent):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
IAgentEventSerializer,
PydanticAgentEventSerializer,
)
from common.events import AbstractAgentEvent
from common.agent_events import AbstractAgentEvent

AGENT_ID = UUID("f811ad00-5a68-4437-bd51-7b5cc1768ad5")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import pytest
from pubsub.core import Publisher

from common.agent_events import AbstractAgentEvent
from common.event_queue import AgentEventSubscriber, IAgentEventQueue, PyPubSubAgentEventQueue
from common.events import AbstractAgentEvent

EVENT_TAG_1 = "event tag 1"
EVENT_TAG_2 = "event tag 2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import pytest

from common.agent_events import CredentialsStolenEvent
from common.credentials import Credentials, LMHash, NTHash, Password, Username
from common.event_queue import IAgentEventQueue
from common.events import CredentialsStolenEvent
from infection_monkey.credential_collectors import MimikatzCredentialCollector
from infection_monkey.credential_collectors.mimikatz_collector.mimikatz_credential_collector import ( # noqa: E501
MIMIKATZ_EVENT_TAGS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from unittest.mock import MagicMock
from uuid import UUID

from common.agent_events import CredentialsStolenEvent
from common.credentials import Credentials, Password, Username
from common.events import CredentialsStolenEvent
from infection_monkey.credential_repository import (
IPropagationCredentialsRepository,
add_credentials_from_event_to_propagation_credentials_repository,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
AgentEventSerializerRegistry,
PydanticAgentEventSerializer,
)
from common.events import AbstractAgentEvent
from common.agent_events import AbstractAgentEvent
from monkey_island.cc.repository import (
IAgentEventRepository,
MongoEventRepository,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
AgentEventSerializerRegistry,
PydanticAgentEventSerializer,
)
from common.agent_events import AbstractAgentEvent
from common.event_queue import IAgentEventQueue
from common.events import AbstractAgentEvent
from monkey_island.cc.resources import AgentEvents

EVENTS_URL = AgentEvents.urls[0]
Expand Down

0 comments on commit d1654a4

Please sign in to comment.