Files
recon-pipeline/tests/test_recon/test_config.py
epi052 b0534ceb27 Remove OS assumption (#15)
* removed kali specific installs - test 1

* removed kali specific installs - test 2

* removed kali specific installs - test 2

* removed kali specific installs - test 4

* removed kali specific installs - test 5

* removed kali specific installs - test 6

* removed kali specific installs - test 7

* removed kali specific installs - test 8

* removed kali specific installs - test 9

* removed kali specific installs - test 10

* removed kali specific installs - test 11

* removed kali specific installs - test 12

* removed kali specific installs - test 13

* removed kali specific installs - test 14

* all works locally, fixing up tests et al

* trying pipeline again; round 2

* looks good locally; testing pipeline again

* test 18?

* test 19

* 20

* 21
2020-02-07 22:54:15 -06:00

37 lines
838 B
Python

from pathlib import Path
from recon.config import tool_paths, defaults, web_ports, top_tcp_ports, top_udp_ports
def test_tool_paths_absolute():
for path in tool_paths.values():
assert Path(path).is_absolute()
def test_threads_numeric():
assert defaults.get("threads").isnumeric()
def test_masscan_rate_numeric():
assert defaults.get("masscan-rate").isnumeric()
def test_aquatone_scan_timeout_numeric():
assert defaults.get("aquatone-scan-timeout").isnumeric()
def test_webports_exist_and_numeric():
assert web_ports is not None
for port in web_ports:
assert port.isnumeric()
def test_top_tcp_ports_exist():
assert top_tcp_ports is not None
assert len(top_tcp_ports) >= 1
def test_top_udp_ports_exist():
assert top_udp_ports is not None
assert len(top_udp_ports) >= 1