refactor: remove occurences of scanner

This commit is contained in:
dextmorgn
2025-09-04 18:53:04 +02:00
parent ec92af80b2
commit 980bb85af4
102 changed files with 890 additions and 2371 deletions

View File

@@ -7,7 +7,7 @@ if __name__ == "__main__":
from flowsint_types.domain import Domain
from flowsint_types.ip import Ip
from flowsint_transforms.domains.resolve import ResolveScanner
from flowsint_transforms.domains.resolve import ResolveTransform
async def main():
@@ -15,11 +15,11 @@ async def main():
domains = [Domain(domain="adaltas.com")]
ips = [Ip(address="12.23.34.45"), Ip(address="56.67.78.89")]
# Test the scanner
scanner = ResolveScanner("sketch_123", "scan_123")
# Test the transform
transform = ResolveTransform("sketch_123", "scan_123")
# Test the new KISS postprocess method
scanner.postprocess(ips[:1], domains) # Only use first IP to match domains length
transform.postprocess(ips[:1], domains) # Only use first IP to match domains length
print("Postprocess test completed successfully!")