Skip to content

Commit

Permalink
[SIEM][Detections] Fixes index patterns order (#71270) (#71446)
Browse files Browse the repository at this point in the history
* fixes alphabetical order for index patterns

* fixes cypress tests adding the new index pattern

* fixes jest tests

* fixes jest tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
MadameSheema and elasticmachine committed Jul 13, 2020
1 parent bdeacce commit ca89cae
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/security_solution/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ export const DEFAULT_INDEX_PATTERN = [
'auditbeat-*',
'endgame-*',
'filebeat-*',
'logs-*',
'packetbeat-*',
'winlogbeat-*',
'logs-*',
];

/** This Kibana Advanced Setting enables the `Security news` feed widget */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ describe.skip('Detection rules, custom', () => {
'auditbeat-*',
'endgame-*',
'filebeat-*',
'logs-*',
'packetbeat-*',
'winlogbeat-*',
];
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('Index Fields & Browser Fields', () => {
indexPattern: {
fields: [],
title:
'apm-*-transaction*,auditbeat-*,endgame-*,filebeat-*,packetbeat-*,winlogbeat-*,logs-*',
'apm-*-transaction*,auditbeat-*,endgame-*,filebeat-*,logs-*,packetbeat-*,winlogbeat-*',
},
indicesExist: true,
loading: true,
Expand Down Expand Up @@ -59,7 +59,7 @@ describe('Index Fields & Browser Fields', () => {
indexPattern: {
fields: mockIndexFields,
title:
'apm-*-transaction*,auditbeat-*,endgame-*,filebeat-*,packetbeat-*,winlogbeat-*,logs-*',
'apm-*-transaction*,auditbeat-*,endgame-*,filebeat-*,logs-*,packetbeat-*,winlogbeat-*',
},
loading: false,
errorMessage: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,9 @@ describe('useFetchIndexPatterns', () => {
'auditbeat-*',
'endgame-*',
'filebeat-*',
'logs-*',
'packetbeat-*',
'winlogbeat-*',
'logs-*',
],
name: 'event.end',
searchable: true,
Expand All @@ -369,9 +369,9 @@ describe('useFetchIndexPatterns', () => {
'auditbeat-*',
'endgame-*',
'filebeat-*',
'logs-*',
'packetbeat-*',
'winlogbeat-*',
'logs-*',
],
indicesExists: true,
indexPatterns: {
Expand Down Expand Up @@ -418,7 +418,7 @@ describe('useFetchIndexPatterns', () => {
{ name: 'event.end', searchable: true, type: 'date', aggregatable: true },
],
title:
'apm-*-transaction*,auditbeat-*,endgame-*,filebeat-*,packetbeat-*,winlogbeat-*,logs-*',
'apm-*-transaction*,auditbeat-*,endgame-*,filebeat-*,logs-*,packetbeat-*,winlogbeat-*',
},
},
result.current[1],
Expand Down Expand Up @@ -450,9 +450,9 @@ describe('useFetchIndexPatterns', () => {
'auditbeat-*',
'endgame-*',
'filebeat-*',
'logs-*',
'packetbeat-*',
'winlogbeat-*',
'logs-*',
],
indicesExists: false,
isLoading: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
'auditbeat-*',
'endgame-*',
'filebeat-*',
'logs-*',
'packetbeat-*',
'winlogbeat-*',
'logs-*',
],
inspect: false,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
'auditbeat-*',
'endgame-*',
'filebeat-*',
'logs-*',
'packetbeat-*',
'winlogbeat-*',
'logs-*',
],
inspect: false,
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ca89cae

Please sign in to comment.