feat(report): implement exportable executive security report with A4 Paged.js pagination

This commit is contained in:
Lucas Rayan committed 2026-11-02 09:36:41 -03:00
1 parent e8e529b09c
commit f388d95839
7 files changed
+1432 -1

No files matched your search

@@ -202,6 +202,18 @@ alvos = ["127.0.0.1/32"]
assert!(headers.contains("content-type: text/csv; charset=utf-8"));
assert!(headers.contains("content-disposition: attachment; filename=\"xexeu-changes-"));
assert!(body.starts_with("Data/Hora (UTC),Tipo de Evento,Alvo / Host,Grupo,Detalhe"));
// Executive Report HTML
let (code, headers, body) = http_request(&addr, "GET", "/relatorio", None);
assert_eq!(code, 200);
assert!(headers.contains("content-type: text/html; charset=utf-8"));
assert!(body.contains("Relatório Executivo de Segurança — Xexéu"));
assert!(body.contains("Indicadores-Chave de Exposição (KPIs)"));
assert!(body.contains("Glossário e Metodologia de Avaliação"));
let (code, headers, _) = http_request(&addr, "GET", "/report", None);
assert_eq!(code, 200);
assert!(headers.contains("content-type: text/html; charset=utf-8"));
}
#[test]