From 887bd629865797b2282ca3213505bb26d9c3448c Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Thu, 15 Oct 2026 13:45:43 +0200 Subject: [PATCH] test(sbom): the licence summary serialises its category and confirmed count Co-Authored-By: Claude Opus 5.5 --- compliance-agent/src/api/handlers/dto.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compliance-agent/src/api/handlers/dto.rs b/compliance-agent/src/api/handlers/dto.rs index 399a242..6fd34ed 100644 --- a/compliance-agent/src/api/handlers/dto.rs +++ b/compliance-agent/src/api/handlers/dto.rs @@ -668,12 +668,16 @@ mod tests { license: "MIT".to_string(), count: 42, is_copyleft: false, + category: compliance_core::models::LicenseCategory::Permissive, + confirmed: 3, packages: vec!["serde".to_string()], }; let v = serde_json::to_value(&ls).unwrap(); assert_eq!(v["license"], "MIT"); assert_eq!(v["is_copyleft"], false); assert_eq!(v["count"], 42); + assert_eq!(v["category"], "permissive"); + assert_eq!(v["confirmed"], 3); } // ── Default helper functions ─────────────────────────────────