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 (
IPuppet,
ExploiterResultData,

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
import threading
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