Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issues found during bug bash, and implemented tests #240

Merged
merged 17 commits into from
May 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
c9f271a
Renamed FindingsDashboard/utils to FindingsDashboard/findingsUtils fo…
AWSHurneyt May 4, 2022
2c0d089
Removed an unused helper method. Refactored various helper methods to…
AWSHurneyt May 5, 2022
4b9be31
Implemented FindingPopover snapshot test.
AWSHurneyt May 5, 2022
67c1da1
Implemented FindingFlyout snapshot test.
AWSHurneyt May 12, 2022
9817cbb
Refactored DocumentLevelTriggerExpression to require selections, and …
AWSHurneyt May 13, 2022
b6ff522
Implementing integration tests
AWSHurneyt May 13, 2022
f9e0ea3
Implemented an example trigger condition for doc level monitors that …
AWSHurneyt May 11, 2022
236d07c
Refactored actions component for doc level monitors to support config…
AWSHurneyt May 11, 2022
ba4f22f
Refactored actions component to refresh the list of channels on blur.
AWSHurneyt May 17, 2022
6423ed9
Fixed a bug that was causing the finding flyout triggered by the aler…
AWSHurneyt May 17, 2022
5800a71
Removed development comment.
AWSHurneyt May 17, 2022
d62434f
Fixed a bug that prevented sorting the performance preview for doc le…
AWSHurneyt May 17, 2022
3a8218e
Fixed a bug that allowed doc level monitors to be defined with blank …
AWSHurneyt May 17, 2022
53c93df
Refactored the backend formatting used for 'is not' queries.
AWSHurneyt May 17, 2022
1832004
Implemented additional integration tests.
AWSHurneyt May 17, 2022
0cf1a31
Refactored the default notify option for doc level monitors.
AWSHurneyt May 17, 2022
19cc3ba
Removed index creation step from test as ingesting data will perform …
AWSHurneyt May 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 113 additions & 0 deletions cypress/fixtures/sample_document_level_monitor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
{
"type": "monitor",
"monitor_type": "doc_level_monitor",
"name": "sample_document_level_monitor",
"enabled": true,
"createdBy": "chip",
"schedule": {
"period": {
"interval": 1,
"unit": "MINUTES"
}
},
"inputs": [
{
"doc_level_input": {
"description": "windows-powershell",
"indices": ["document-level-monitor-test-index"],
"queries": [
{
"id": "sigma-123",
"name": "sigma-123",
"query": "region:\"us-west-2\"",
"tags": ["MITRE:8500"]
},
{
"id": "sigma-456",
"name": "sigma-456",
"query": "region:\"us-east-1\"",
"tags": ["MITRE:8600"]
},
{
"id": "sigma-789",
"name": "sigma-789",
"query": "message:\"This is an error from IAD region\"",
"tags": ["MITRE:8700"]
}
]
}
}
],
"triggers": [
{
"document_level_trigger": {
"name": "sample_trigger",
"severity": "1",
"condition": {
"script": {
"source": "query[name=sigma-123] || query[name=sigma-456] || query[name=sigma-789]",
"lang": "painless"
}
},
"actions": []
}
}
],
"ui_metadata": {
"schedule": {
"timezone": null,
"frequency": "interval",
"period": {
"interval": 1,
"unit": "MINUTES"
},
"daily": 0,
"weekly": {
"mon": false,
"tue": false,
"wed": false,
"thur": false,
"fri": false,
"sat": false,
"sun": false
},
"monthly": {
"type": "day",
"day": 1
},
"cronExpression": "0 */1 * * *"
},
"monitor_type": "doc_level_monitor",
"doc_level_input": {
"queries": [
{
"id": "sigma-123",
"queryName": "sigma-123",
"field": "region",
"operator": "==",
"query": "us-west-2",
"tags": ["MITRE:8500"]
},
{
"id": "sigma-456",
"queryName": "sigma-456",
"field": "region",
"operator": "==",
"query": "us-east-1",
"tags": ["MITRE:8600"]
},
{
"id": "sigma-789",
"queryName": "sigma-789",
"field": "message",
"operator": "==",
"query": "This is an error from IAD region",
"tags": ["MITRE:8700"]
}
]
},
"search": {
"searchType": "graph"
}
}
}
Loading