Common: Use NetworkPort in ExploitationOptionsConfiguration

This commit is contained in:
Mike Salvatore 2022-09-30 09:15:50 -04:00
parent 1a01b7c5dc
commit fa18cb72da
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ class ExploitationOptionsConfiguration(MutableInfectionMonkeyBaseModel):
:param http_ports: HTTP ports to exploit :param http_ports: HTTP ports to exploit
""" """
http_ports: Tuple[conint(ge=0, le=65535), ...] http_ports: Tuple[NetworkPort, ...]
class ExploitationConfiguration(MutableInfectionMonkeyBaseModel): class ExploitationConfiguration(MutableInfectionMonkeyBaseModel):

View File

@ -179,7 +179,7 @@ def test_network_scan_configuration():
def test_exploitation_options_configuration_schema(): def test_exploitation_options_configuration_schema():
ports = [1, 2, 3] ports = [0, 1, 2, 3]
config = ExploitationOptionsConfiguration(http_ports=ports) config = ExploitationOptionsConfiguration(http_ports=ports)