Agent: Move PluginType to the i_plugin package

This commit is contained in:
Mike Salvatore 2021-12-17 10:13:28 -05:00
parent afbc313a7c
commit 973c88678e
7 changed files with 6 additions and 6 deletions

View File

@ -1,3 +1,4 @@
from .plugin_type import PluginType
from .i_puppet import ( from .i_puppet import (
IPuppet, IPuppet,
ExploiterResultData, ExploiterResultData,

View File

@ -4,7 +4,7 @@ from collections import namedtuple
from enum import Enum from enum import Enum
from typing import Dict from typing import Dict
from infection_monkey.puppet.plugin_type import PluginType from . import PluginType
class PortStatus(Enum): class PortStatus(Enum):

View File

@ -7,11 +7,11 @@ from infection_monkey.i_puppet import (
FingerprintData, FingerprintData,
IPuppet, IPuppet,
PingScanData, PingScanData,
PluginType,
PortScanData, PortScanData,
PortStatus, PortStatus,
PostBreachData, PostBreachData,
) )
from infection_monkey.puppet.plugin_type import PluginType
DOT_1 = "10.0.0.1" DOT_1 = "10.0.0.1"
DOT_2 = "10.0.0.2" DOT_2 = "10.0.0.2"

View File

@ -1,8 +1,7 @@
import logging import logging
from typing import Optional from typing import Optional
from infection_monkey.i_puppet import UnknownPluginError from infection_monkey.i_puppet import PluginType, UnknownPluginError
from infection_monkey.puppet.plugin_type import PluginType
logger = logging.getLogger() logger = logging.getLogger()

View File

@ -7,11 +7,11 @@ from infection_monkey.i_puppet import (
FingerprintData, FingerprintData,
IPuppet, IPuppet,
PingScanData, PingScanData,
PluginType,
PortScanData, PortScanData,
PostBreachData, PostBreachData,
) )
from infection_monkey.puppet.plugin_registry import PluginRegistry from infection_monkey.puppet.plugin_registry import PluginRegistry
from infection_monkey.puppet.plugin_type import PluginType
logger = logging.getLogger() logger = logging.getLogger()

View File

@ -1,7 +1,7 @@
import threading import threading
from unittest.mock import MagicMock from unittest.mock import MagicMock
from infection_monkey.puppet.plugin_type import PluginType from infection_monkey.i_puppet import PluginType
from infection_monkey.puppet.puppet import Puppet from infection_monkey.puppet.puppet import Puppet