gossan-intel 0.3.1

Global Passive and Active Intel pillar for Gossan — part of the security research ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- web/gossan/crates/intel/tests/adversarial.rs
+++ web/gossan/crates/intel/tests/adversarial.rs
@@ -282,10 +282,10 @@
     let db_path = NamedTempFile::new().unwrap().into_temp_path();
     let mut db = IntelDb::open(&db_path).unwrap();
-    let mut jsonl_file = NamedTempFile::new().unwrap();
+    let mut jsonl_file = tempfile::NamedTempFile::new().unwrap();
     writeln!(jsonl_file, "invalid json").unwrap();
     writeln!(jsonl_file, "{{\"ip\": \"1.1.1.1\", \"port\": 80, \"protocol\": \"tcp\"}}").unwrap(); // valid
     writeln!(jsonl_file, "{{\"ip\":").unwrap(); // invalid
-    jsonl_file.flush().unwrap();
+    // jsonl_file.flush().unwrap();
     
     let count = Ingester::ingest_jsonl(&mut db, jsonl_file.path()).unwrap();