Skip to content

Commit

Permalink
[BUG] No space between the detector details and the rule panel opense…
Browse files Browse the repository at this point in the history
…arch-project#522

[BUG] A rule flyout without references have an empty link opensearch-project#521
[FEATURE] Update header size to use euiTitle--small opensearch-project#520

Signed-off-by: Jovan Cvetkovic <[email protected]>
  • Loading branch information
jovancvetkovic3006 committed Apr 18, 2023
1 parent 35b9d90 commit 37b9483
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
],
"log_source": "",
"detection": "selection:\n winlog-event_id:\n - 2003\n - 2100\n - 2102\ncondition: selection",
"detection": "selection:\n winlog.event_id:\n - 2003\n - 2100\n - 2102\ncondition: selection",
"level": "low",
"false_positives": [
{
Expand Down
8 changes: 6 additions & 2 deletions cypress/fixtures/sample_detector.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
"id": "1a4bd6e3-4c6e-405d-a9a3-53a116e341d4"
}
],
"custom_rules": []
"custom_rules": [
{
"id": ""
}
]
}
}
],
Expand Down Expand Up @@ -51,7 +55,7 @@
],
"types": ["windows"],
"severity": "4",
"ids": ["1a4bd6e3-4c6e-405d-a9a3-53a116e341d4"]
"ids": []
}
]
}
2 changes: 1 addition & 1 deletion cypress/fixtures/sample_document.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"winlog.event_id": "2003"
"winlog.event_id": 2003
}
14 changes: 12 additions & 2 deletions cypress/integration/3_alerts.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import moment from 'moment';
import { DETECTOR_TRIGGER_TIMEOUT, OPENSEARCH_DASHBOARDS_URL } from '../support/constants';
import sample_index_settings from '../fixtures/sample_windows_index_settings.json';
import sample_alias_mappings from '../fixtures/sample_alias_mappings.json';
import sample_detector from '../fixtures/sample_detector.json';
import sample_detector from '../fixtures/integration_tests/detector/create_usb_detector_data.json';
import sample_document from '../fixtures/sample_document.json';
import windows_rule_data from '../fixtures/integration_tests/rule/create_windows_usb_rule.json';

const testIndex = 'sample_alerts_spec_cypress_test_index';
const testDetectorName = 'alerts_spec_cypress_test_detector';
Expand Down Expand Up @@ -53,7 +54,16 @@ describe('Alerts', () => {
)

// Create test detector
.then(() => cy.createDetector(testDetector))
.then(() => {
cy.createRule(windows_rule_data)
.then((response) => {
testDetector.inputs[0].detector_input.custom_rules[0].id = response.body.response._id;
testDetector.triggers[0].ids.push(response.body.response._id);
})
.then((response) => {
cy.createDetector(testDetector);
});
})

.then(() => {
// Go to the detectors table page
Expand Down

0 comments on commit 37b9483

Please sign in to comment.