-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: extend coverage, fix analyst data inspection
- Loading branch information
Showing
8 changed files
with
435 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/test/fixtures/test_analyst_data_index_minimal_non-blocked.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"Note": [ | ||
{ | ||
"5352d149-7cb8-4b91-a403-b3428c4b9dae": "2025-01-08 10:37:00" | ||
} | ||
], | ||
"Opinion": [ | ||
{ | ||
"bc6992d6-1e38-402d-a319-b73c8de11ceb": "2025-01-08 10:37:00" | ||
} | ||
], | ||
"Relationship": [ | ||
{ | ||
"d8990433-bf3b-47ab-8263-eb15ff2bd0d4": "2025-01-08 10:37:00" | ||
} | ||
] | ||
} |
98 changes: 98 additions & 0 deletions
98
src/test/fixtures/test_event_blocked_attribute_note_distribution.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"Event": { | ||
"id": "1", | ||
"orgc_id": "1", | ||
"org_id": "1", | ||
"date": "2022-08-31", | ||
"threat_level_id": "1", | ||
"info": "blocked attribute type", | ||
"published": false, | ||
"uuid": "385283a1-b5e0-4e10-a532-dce11c365a56", | ||
"attribute_count": "4", | ||
"analysis": "0", | ||
"timestamp": "1661956788", | ||
"distribution": "1", | ||
"proposal_email_lock": false, | ||
"locked": false, | ||
"publish_timestamp": "1661956380", | ||
"sharing_group_id": "0", | ||
"disable_correlation": false, | ||
"extends_uuid": "", | ||
"protected": null, | ||
"event_creator_email": "[email protected]", | ||
"Org": { | ||
"id": "1", | ||
"name": "HOST", | ||
"uuid": "10c8f445-888b-4a2d-bac8-4e1e8861d595", | ||
"local": true | ||
}, | ||
"Orgc": { | ||
"id": "1", | ||
"name": "HOST", | ||
"uuid": "10c8f445-888b-4a2d-bac8-4e1e8861d595", | ||
"local": true | ||
}, | ||
"Attribute": [ | ||
{ | ||
"id": "1", | ||
"type": "ip-src", | ||
"category": "Network activity", | ||
"to_ids": false, | ||
"uuid": "e37a6c99-c7dc-4e41-8c79-25e35c39df0a", | ||
"event_id": "1", | ||
"distribution": "5", | ||
"timestamp": "1661956302", | ||
"comment": "", | ||
"sharing_group_id": "0", | ||
"deleted": false, | ||
"disable_correlation": false, | ||
"object_id": "0", | ||
"object_relation": null, | ||
"first_seen": null, | ||
"last_seen": null, | ||
"value": "8.8.8.8", | ||
"Galaxy": [], | ||
"ShadowAttribute": [], | ||
"Note": [ | ||
{ | ||
"id": "1", | ||
"uuid": "9c0e3e20-b1ea-4473-81d2-845c4399c36d", | ||
"object_uuid": "b3eedfc4-8ffa-41a2-875b-6c3d0e4602b8", | ||
"object_type": "Attribute", | ||
"authors": "[email protected]", | ||
"org_uuid": "10c8f445-888b-4a2d-bac8-4e1e8861d595", | ||
"orgc_uuid": "10c8f445-888b-4a2d-bac8-4e1e8861d595", | ||
"created": "2024-10-04 08:09:39", | ||
"modified": "2024-10-04 08:09:39", | ||
"distribution": "0", | ||
"sharing_group_id": null, | ||
"locked": false, | ||
"note": "Ceci est une note", | ||
"language": "fr-BE", | ||
"note_type": 0, | ||
"note_type_name": "Note", | ||
"Org": { | ||
"id": "1", | ||
"name": "HOST", | ||
"uuid": "10c8f445-888b-4a2d-bac8-4e1e8861d595", | ||
"local": true | ||
}, | ||
"Orgc": { | ||
"id": "1", | ||
"name": "HOST", | ||
"uuid": "10c8f445-888b-4a2d-bac8-4e1e8861d595", | ||
"local": true | ||
}, | ||
"_canEdit": true | ||
} | ||
] | ||
} | ||
], | ||
"ShadowAttribute": [], | ||
"RelatedEvent": [], | ||
"Galaxy": [], | ||
"Object": [], | ||
"EventReport": [], | ||
"CryptographicKey": [] | ||
} | ||
} |
98 changes: 98 additions & 0 deletions
98
src/test/fixtures/test_event_blocked_attribute_opinion_distribution.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"Event": { | ||
"id": "1", | ||
"orgc_id": "1", | ||
"org_id": "1", | ||
"date": "2022-08-31", | ||
"threat_level_id": "1", | ||
"info": "blocked attribute type", | ||
"published": false, | ||
"uuid": "385283a1-b5e0-4e10-a532-dce11c365a56", | ||
"attribute_count": "4", | ||
"analysis": "0", | ||
"timestamp": "1661956788", | ||
"distribution": "1", | ||
"proposal_email_lock": false, | ||
"locked": false, | ||
"publish_timestamp": "1661956380", | ||
"sharing_group_id": "0", | ||
"disable_correlation": false, | ||
"extends_uuid": "", | ||
"protected": null, | ||
"event_creator_email": "[email protected]", | ||
"Org": { | ||
"id": "1", | ||
"name": "HOST", | ||
"uuid": "10c8f445-888b-4a2d-bac8-4e1e8861d595", | ||
"local": true | ||
}, | ||
"Orgc": { | ||
"id": "1", | ||
"name": "HOST", | ||
"uuid": "10c8f445-888b-4a2d-bac8-4e1e8861d595", | ||
"local": true | ||
}, | ||
"Attribute": [ | ||
{ | ||
"id": "1", | ||
"type": "ip-src", | ||
"category": "Network activity", | ||
"to_ids": false, | ||
"uuid": "e37a6c99-c7dc-4e41-8c79-25e35c39df0a", | ||
"event_id": "1", | ||
"distribution": "5", | ||
"timestamp": "1661956302", | ||
"comment": "", | ||
"sharing_group_id": "0", | ||
"deleted": false, | ||
"disable_correlation": false, | ||
"object_id": "0", | ||
"object_relation": null, | ||
"first_seen": null, | ||
"last_seen": null, | ||
"value": "8.8.8.8", | ||
"Galaxy": [], | ||
"ShadowAttribute": [], | ||
"Opinion": [ | ||
{ | ||
"id": "1", | ||
"uuid": "f43b2e9c-93c3-4d1e-a99a-e0996ced962c", | ||
"object_uuid": "b3eedfc4-8ffa-41a2-875b-6c3d0e4602b8", | ||
"object_type": "Event", | ||
"authors": "[email protected]", | ||
"org_uuid": "10c8f445-888b-4a2d-bac8-4e1e8861d595", | ||
"orgc_uuid": "10c8f445-888b-4a2d-bac8-4e1e8861d595", | ||
"created": "2024-10-04 08:09:47", | ||
"modified": "2024-10-04 08:09:47", | ||
"distribution": "0", | ||
"sharing_group_id": null, | ||
"locked": false, | ||
"opinion": "75", | ||
"comment": "This is an opinion", | ||
"note_type": 1, | ||
"note_type_name": "Opinion", | ||
"Org": { | ||
"id": "1", | ||
"name": "HOST", | ||
"uuid": "10c8f445-888b-4a2d-bac8-4e1e8861d595", | ||
"local": true | ||
}, | ||
"Orgc": { | ||
"id": "1", | ||
"name": "HOST", | ||
"uuid": "10c8f445-888b-4a2d-bac8-4e1e8861d595", | ||
"local": true | ||
}, | ||
"_canEdit": true | ||
} | ||
] | ||
} | ||
], | ||
"ShadowAttribute": [], | ||
"RelatedEvent": [], | ||
"Galaxy": [], | ||
"Object": [], | ||
"EventReport": [], | ||
"CryptographicKey": [] | ||
} | ||
} |
Oops, something went wrong.