Skip to content

Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.

fix: correct diff test JSON keys (removed_count -> removed, added_count -> added)

FABIOTESS41211dd0ac4e
diff --git a/tests/server_roundtrip_test.rs b/tests/server_roundtrip_test.rs
index cc8fa238..5c9d5e0a 100644
--- a/tests/server_roundtrip_test.rs
+++ b/tests/server_roundtrip_test.rs
@@ -122,8 +122,8 @@ ex:Fish a owl:Class ;
let diff = OntologyService::diff(original, modified).unwrap();
let val: serde_json::Value = serde_json::from_str(&diff).unwrap();
// Cat removed, Fish added
- assert!(val["removed_count"].as_u64().unwrap() > 0, "Should detect removals");
- assert!(val["added_count"].as_u64().unwrap() > 0, "Should detect additions");
+ assert!(val["removed"].as_u64().unwrap() > 0, "Should detect removals");
+ assert!(val["added"].as_u64().unwrap() > 0, "Should detect additions");
}
#[test]