MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / test_attack_mitre

Function test_attack_mitre

crates/openshell-ocsf/src/objects/attack.rs:66–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65 #[test]
66 fn test_attack_mitre() {
67 let attack = Attack::mitre(
68 "T1550",
69 "Use Alternate Authentication Material",
70 "TA0008",
71 "Lateral Movement",
72 );
73 let json = serde_json::to_value(&attack).unwrap();
74 assert_eq!(json["technique"]["uid"], "T1550");
75 assert_eq!(
76 json["technique"]["name"],
77 "Use Alternate Authentication Material"
78 );
79 assert_eq!(json["tactic"]["uid"], "TA0008");
80 assert_eq!(json["tactic"]["name"], "Lateral Movement");
81 }
82}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected