4081e55ba8
Adds pytest coverage for flock_tap.py's parsing, classification, and byte/FRP/cloud-IP accounting, plus a .gitignore for Python caches and capture/scan output artifacts. The packet-level tests double as regression guards for the recently fixed detection bugs (FRP auth-payload firing on data segments not just SYN, no bytes_up inflation, and known-Flock-IP correlation); they fail against the pre-fix code and pass after it. scapy-dependent tests skip cleanly when scapy is unavailable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7 lines
216 B
Python
7 lines
216 B
Python
import os
|
|
import sys
|
|
|
|
# Make the repo root importable so `import flock_tap` works regardless of the
|
|
# directory pytest is invoked from.
|
|
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|