diff options
| author | stuppie | 2026-03-13 13:31:22 -0600 |
|---|---|---|
| committer | stuppie | 2026-03-13 13:31:22 -0600 |
| commit | efe1c368b8b49a2c6b3bf2193a5b89eb5426eba3 (patch) | |
| tree | e00bc797640fc18f3484506d6a5b752cf1c8b7f4 /tests/models/network/mtr.py | |
| parent | d9ab70d98624e22b87dfe40cc5e18c8ad5eb44c4 (diff) | |
| download | generalresearch-efe1c368b8b49a2c6b3bf2193a5b89eb5426eba3.tar.gz generalresearch-efe1c368b8b49a2c6b3bf2193a5b89eb5426eba3.zip | |
ToolRunCommand + options models to handle cmd line args for all network tools
Diffstat (limited to 'tests/models/network/mtr.py')
| -rw-r--r-- | tests/models/network/mtr.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/models/network/mtr.py b/tests/models/network/mtr.py deleted file mode 100644 index 2965300..0000000 --- a/tests/models/network/mtr.py +++ /dev/null @@ -1,26 +0,0 @@ -from generalresearch.models.network.mtr.execute import execute_mtr -import faker - -from generalresearch.models.network.tool_run import ToolName, ToolClass - -fake = faker.Faker() - - -def test_execute_mtr(toolrun_manager): - ip = "65.19.129.53" - - run = execute_mtr(ip=ip, report_cycles=3) - assert run.tool_name == ToolName.MTR - assert run.tool_class == ToolClass.TRACEROUTE - assert run.ip == ip - result = run.parsed - - last_hop = result.hops[-1] - assert last_hop.asn == 6939 - assert last_hop.domain == "grlengine.com" - - last_hop_1 = result.hops[-2] - assert last_hop_1.asn == 6939 - assert last_hop_1.domain == "he.net" - - toolrun_manager.create_mtr_run(run) |
