Skip to content

Commit

Permalink
updated mappings for test index (#841)
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <[email protected]>
  • Loading branch information
amsiglan authored Sep 13, 2023
1 parent f5aa58f commit c837967
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"properties": {
"winlog-event_id": {
"winlog.event_id": {
"type": "alias",
"path": "winlog.event_id"
"path": "EventID"
},
"winlog-provider_name": {
"type": "alias",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"winlog.event_id": "2003"
"EventID": "2003"
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"mappings": {
"properties": {
"winlog.event_id": {
"EventID": {
"type": "integer"
},
"winlog.provider_name": {
Expand Down
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 EventID:\n - 2003\n - 2100\n - 2102\ncondition: selection",
"level": "high",
"false_positives": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"properties": {
"winlog-event_id": {
"winlog.event_id": {
"type": "alias",
"path": "winlog.event_id"
"path": "EventID"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"winlog.event_id": 2003
"EventID": 2003
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"properties": {
"winlog-event_id": {
"path": "winlog.event_id",
"winlog.event_id": {
"path": "EventID",
"type": "alias"
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"mappings": {
"properties": {
"winlog.event_id": {
"EventID": {
"type": "integer"
},
"winlog.provider_name": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,7 @@ describe('Alerts', () => {
// The EuiCodeEditor used for this component stores each line of the JSON in an array of elements;
// so this test formats the expected document into an array of strings,
// and matches each entry with the corresponding element line.
const document = JSON.stringify(
JSON.parse('{"winlog.event_id": 2003}'),
null,
2
);
const document = JSON.stringify(JSON.parse('{"EventID": 2003}'), null, 2);
const documentLines = document.split('\n');
cy.get('[data-test-subj="finding-details-flyout-rule-document"]')
.get('[class="euiCodeBlock__line"]')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ export const createDetector = (
});
});

// Wait for the first run to execute before ingesting data
cy.wait(65000);
// Ingest documents to the test index
for (let i = 0; i < indexDocsCount; i++) {
cy.insertDocumentToIndex(indexName, '', indexDoc);
Expand Down

0 comments on commit c837967

Please sign in to comment.