-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/alert_reason_formatting_expandable_flyout
- Loading branch information
Showing
257 changed files
with
35,072 additions
and
34,158 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
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
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
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
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
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
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
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
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
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
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
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
7 changes: 4 additions & 3 deletions
7
...ents/getting_started/languages/console.ts → ...bn-search-api-panels/languages/console.ts
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
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
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
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
15 changes: 15 additions & 0 deletions
15
test/api_integration/apis/data_views/resolve_index/index.ts
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,15 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import { FtrProviderContext } from '../../../ftr_provider_context'; | ||
|
||
export default function ({ loadTestFile }: FtrProviderContext) { | ||
describe('/internal/index-pattern-management/resolve_index', () => { | ||
loadTestFile(require.resolve('./resolve_index')); | ||
}); | ||
} |
23 changes: 23 additions & 0 deletions
23
test/api_integration/apis/data_views/resolve_index/resolve_index.ts
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,23 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import { FtrProviderContext } from '../../../ftr_provider_context'; | ||
|
||
// node scripts/functional_tests --config test/api_integration/config.js --grep="Resolve index API" | ||
|
||
export default function ({ getService }: FtrProviderContext) { | ||
const supertest = getService('supertest'); | ||
|
||
describe('Resolve index API', function () { | ||
it('should return 200 for a search for indices with wildcard', () => | ||
supertest.get(`/internal/index-pattern-management/resolve_index/test*`).expect(200)); | ||
|
||
it('should return 404 for an exact match index', () => | ||
supertest.get(`/internal/index-pattern-management/resolve_index/test`).expect(404)); | ||
}); | ||
} |
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
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,64 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { Journey } from '@kbn/journeys'; | ||
import { subj } from '@kbn/test-subj-selector'; | ||
|
||
const TAG_NAME = 'testing'; | ||
const TAG_DESCRIPTION = 'test description'; | ||
|
||
export const journey = new Journey({ | ||
esArchives: ['x-pack/performance/es_archives/sample_data_flights'], | ||
kbnArchives: ['x-pack/performance/kbn_archives/many_tags_and_visualizations'], | ||
}) | ||
.step('Go to Tags Page', async ({ page, kbnUrl }) => { | ||
await page.goto(kbnUrl.get(`/app/management/kibana/tags`)); | ||
await page.waitForSelector(subj('tagsManagementTable table-is-ready')); | ||
}) | ||
.step('Delete the first 20 tags', async ({ page }) => { | ||
await page.click(subj('checkboxSelectAll')); | ||
await page.click(subj('actionBar-contextMenuButton')); | ||
await page.click(subj('actionBar-button-delete')); | ||
await page.click(subj('confirmModalConfirmButton')); | ||
await page.waitForSelector(subj('tagsManagementTable table-is-ready')); | ||
}) | ||
.step(`Search for 'stream' tag`, async ({ page, inputDelays }) => { | ||
await page.type(subj('tagsManagementSearchBar'), 'stream', { | ||
delay: inputDelays.TYPING, | ||
}); | ||
await page.waitForSelector(subj('tagsManagementTable table-is-ready')); | ||
}) | ||
.step('Create a new tag', async ({ page, inputDelays, kibanaPage }) => { | ||
await kibanaPage.clearInput(subj('tagsManagementSearchBar')); | ||
await page.waitForSelector(subj('tagsManagementTable table-is-ready')); | ||
await page.click(subj('createTagButton')); | ||
await page.type(subj('createModalField-name'), TAG_NAME, { delay: inputDelays.TYPING }); | ||
await kibanaPage.clickAndWaitFor(subj('createModalConfirmButton'), 'detached'); | ||
await page.waitForSelector(subj('tagsManagementTable table-is-ready')); | ||
// search for newly created tag | ||
await page.type(subj('tagsManagementSearchBar'), TAG_NAME, { | ||
delay: inputDelays.TYPING, | ||
}); | ||
await page.waitForSelector(subj('tagsManagementTable table-is-ready')); | ||
await page.waitForSelector(subj('tagsTableRowName'), { state: 'visible' }); | ||
}) | ||
.step('Update tag', async ({ page, inputDelays, kibanaPage }) => { | ||
await page.click(subj('tagsTableAction-edit')); | ||
await page.type(subj('createModalField-description'), TAG_DESCRIPTION, { | ||
delay: inputDelays.TYPING, | ||
}); | ||
await kibanaPage.clickAndWaitFor(subj('createModalConfirmButton'), 'detached'); | ||
await page.waitForSelector(subj('tagsManagementTable table-is-ready')); | ||
}) | ||
.step('Delete tag', async ({ page }) => { | ||
const tagRow = page.locator(subj('tagsTableRowName')); | ||
await page.click(subj('euiCollapsedItemActionsButton')); | ||
await page.click(subj('tagsTableAction-delete')); | ||
await page.click(subj('confirmModalConfirmButton')); | ||
await page.waitForSelector(subj('tagsManagementTable table-is-ready')); | ||
await tagRow.waitFor({ state: 'detached' }); | ||
}); |
Oops, something went wrong.