File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -214,9 +214,13 @@ func TestAlert_Marshal(t *testing.T) {
214214 RuleID : String ("rid" ),
215215 RuleSeverity : String ("rs" ),
216216 RuleDescription : String ("rd" ),
217- Tool : String ("t" ),
218- CreatedAt : & Timestamp {referenceTime },
219- Open : Bool (false ),
217+ Tool : & Tool {
218+ Name : String ("n" ),
219+ GUID : String ("g" ),
220+ Version : String ("v" ),
221+ },
222+ CreatedAt : & Timestamp {referenceTime },
223+ Open : Bool (false ),
220224 ClosedBy : & User {
221225 Login : String ("l" ),
222226 ID : Int64 (1 ),
@@ -235,7 +239,11 @@ func TestAlert_Marshal(t *testing.T) {
235239 "rule_id": "rid",
236240 "rule_severity": "rs",
237241 "rule_description": "rd",
238- "tool": "t",
242+ "tool": {
243+ "name": "n",
244+ "guid": "g",
245+ "version": "v"
246+ },
239247 "created_at": ` + referenceTimeStr + `,
240248 "open": false,
241249 "closed_by": {
You can’t perform that action at this time.
0 commit comments