-
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 202765-apm-emotion-migration
- Loading branch information
Showing
197 changed files
with
4,516 additions
and
2,678 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
steps: | ||
- command: .buildkite/scripts/lifecycle/pre_build.sh | ||
label: Pre-Build | ||
timeout_in_minutes: 10 | ||
agents: | ||
machineType: n2-standard-2 | ||
|
||
- wait | ||
|
||
- command: .buildkite/scripts/steps/renovate.sh | ||
label: 'Renovate validation' | ||
agents: | ||
machineType: n2-highcpu-8 | ||
preemptible: true | ||
key: renovate_validation | ||
timeout_in_minutes: 60 | ||
retry: | ||
automatic: | ||
- exit_status: '-1' | ||
limit: 3 |
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,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
echo '--- Renovate: validation' | ||
.buildkite/scripts/steps/checks/renovate.sh |
Validating CODEOWNERS rules …
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
Binary file modified
BIN
-74.1 KB
(74%)
src/core/server/integration_tests/saved_objects/migrations/archives/7.13.0_5k_so_node_01.zip
Binary file not shown.
Binary file modified
BIN
-268 KB
(39%)
src/core/server/integration_tests/saved_objects/migrations/archives/7.13.0_5k_so_node_02.zip
Binary file not shown.
Binary file modified
BIN
-224 KB
(97%)
...erver/integration_tests/saved_objects/migrations/archives/8.4.0_with_sample_data_logs.zip
Binary file not shown.
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
62 changes: 62 additions & 0 deletions
62
.../transform/public/alerting/transform_health_rule_type/transform_selector_control.test.tsx
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,62 @@ | ||
/* | ||
* 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 React from 'react'; | ||
import { render, fireEvent } from '@testing-library/react'; | ||
import type { TransformSelectorControlProps } from './transform_selector_control'; | ||
import { TransformSelectorControl } from './transform_selector_control'; | ||
|
||
describe('TransformSelectorControl', () => { | ||
const defaultProps: TransformSelectorControlProps = { | ||
label: 'Select Transforms', | ||
errors: [], | ||
onChange: jest.fn(), | ||
selectedOptions: [], | ||
options: ['transform1', 'transform2'], | ||
allowSelectAll: true, | ||
}; | ||
|
||
it('renders without crashing', () => { | ||
const { getByLabelText } = render(<TransformSelectorControl {...defaultProps} />); | ||
expect(getByLabelText('Select Transforms')).toBeInTheDocument(); | ||
}); | ||
|
||
it('displays options correctly', () => { | ||
const { getByText } = render(<TransformSelectorControl {...defaultProps} />); | ||
fireEvent.click(getByText('Select Transforms')); | ||
expect(getByText('transform1')).toBeInTheDocument(); | ||
expect(getByText('transform2')).toBeInTheDocument(); | ||
expect(getByText('*')).toBeInTheDocument(); | ||
}); | ||
|
||
it('calls onChange with selected options', () => { | ||
const { getByText } = render(<TransformSelectorControl {...defaultProps} />); | ||
fireEvent.click(getByText('Select Transforms')); | ||
fireEvent.click(getByText('transform1')); | ||
expect(defaultProps.onChange).toHaveBeenCalledWith(['transform1']); | ||
}); | ||
|
||
it('only allows wildcards as custom options', () => { | ||
const { getByText, getByTestId } = render(<TransformSelectorControl {...defaultProps} />); | ||
fireEvent.click(getByText('Select Transforms')); | ||
const input = getByTestId('comboBoxSearchInput'); | ||
|
||
fireEvent.change(input, { target: { value: 'custom' } }); | ||
fireEvent.keyDown(input, { key: 'Enter', code: 'Enter' }); | ||
expect(defaultProps.onChange).not.toHaveBeenCalledWith(['custom']); | ||
|
||
fireEvent.change(input, { target: { value: 'custom*' } }); | ||
fireEvent.keyDown(input, { key: 'Enter', code: 'Enter' }); | ||
expect(defaultProps.onChange).toHaveBeenCalledWith(['custom*']); | ||
}); | ||
|
||
it('displays errors correctly', () => { | ||
const errorProps = { ...defaultProps, errors: ['Error message'] }; | ||
const { getByText } = render(<TransformSelectorControl {...errorProps} />); | ||
expect(getByText('Error message')).toBeInTheDocument(); | ||
}); | ||
}); |
Oops, something went wrong.