diff --git a/envs/monkey_zoo/blackbox/test_configurations/depth_1_a.py b/envs/monkey_zoo/blackbox/test_configurations/depth_1_a.py index d29451568..cf15d74f1 100644 --- a/envs/monkey_zoo/blackbox/test_configurations/depth_1_a.py +++ b/envs/monkey_zoo/blackbox/test_configurations/depth_1_a.py @@ -5,6 +5,7 @@ from .noop import noop_test_configuration from .utils import ( add_credential_collectors, add_exploiters, + add_http_ports, add_subnets, add_tcp_ports, replace_agent_configuration, @@ -60,10 +61,16 @@ def _add_tcp_ports(agent_configuration: AgentConfiguration) -> AgentConfiguratio return add_tcp_ports(agent_configuration, ports) +def _add_http_ports(agent_configuration: AgentConfiguration) -> AgentConfiguration: + http_ports = [8080, 8983, 9600] + return add_http_ports(agent_configuration, http_ports) + + agent_configuration = set_maximum_depth(noop_test_configuration.agent_configuration, 1) agent_configuration = _add_exploiters(agent_configuration) agent_configuration = _add_subnets(agent_configuration) agent_configuration = _add_credential_collectors(agent_configuration) +agent_configuration = _add_http_ports(agent_configuration) depth_1_a_test_configuration = replace_agent_configuration( noop_test_configuration, agent_configuration