Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Siem Migrations - Fix rules upload API Error Test. #212290

Merged
merged 2 commits into from
Feb 24, 2025

Conversation

logeekal
Copy link
Contributor

@logeekal logeekal commented Feb 24, 2025

Summary

This PR fixes a incorrect UI test :

  • Rules Upload File component should only display API Error in case it occurs, while previously the tests was check if the button is disabled or not. Disability of button is irrelevant.

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

@logeekal logeekal added the Team:Threat Hunting Security Solution Threat Hunting Team label Feb 24, 2025
@logeekal logeekal requested a review from a team as a code owner February 24, 2025 17:26
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

@logeekal logeekal added v9.0.0 backport:version Backport to applied version labels v8.18.0 v9.1.0 v8.19.0 release_note:skip Skip the PR/issue when compiling release notes labels Feb 24, 2025
@logeekal logeekal enabled auto-merge (squash) February 24, 2025 18:21
@logeekal logeekal merged commit 681cef4 into elastic:main Feb 24, 2025
24 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.18, 8.x, 9.0

https://github.com/elastic/kibana/actions/runs/13505686924

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 24, 2025
## Summary

This PR fixes a incorrect UI test :

- Rules Upload File component should only display API Error in case it
occurs, while previously the tests was check if the button is disabled
or not. Disability of button is irrelevant.

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 681cef4)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 24, 2025
## Summary

This PR fixes a incorrect UI test :

- Rules Upload File component should only display API Error in case it
occurs, while previously the tests was check if the button is disabled
or not. Disability of button is irrelevant.

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 681cef4)
@kibanamachine
Copy link
Contributor

kibanamachine commented Feb 24, 2025

💔 Some backports could not be created

Status Branch Result
8.18
8.x
9.0 Backport failed because of merge conflicts

You might need to backport the following PRs to 9.0:
- [Security Solution] Adds prebuilt rule customization cypress tests (#212170)
- [SecuritySolution] Numbers of Network KPI metric are cropped (#211460)
- SKA: Misc cleanup and enhancements (#212207)
- SKA: Relocate "platform" packages that remain on /packages (#208704)
- [Security Solution] - Feat Add Severity and risk_score to the Siem migrations (#211202)


Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 212290

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 24, 2025
…212300)

# Backport

This will backport the following commits from `main` to `8.18`:
- [ Siem Migrations - Fix rules upload API Error Test.
(#212290)](#212290)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Jatin
Kathuria","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-24T18:59:41Z","message":"
Siem Migrations - Fix rules upload API Error Test. (#212290)\n\n##
Summary\n\nThis PR fixes a incorrect UI test :\n\n- Rules Upload File
component should only display API Error in case it\noccurs, while
previously the tests was check if the button is disabled\nor not.
Disability of button is irrelevant.\n\n### Checklist\n\nCheck the PR
satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"681cef4590e4847bdd1d6c9eaa68cd4f539e8cc2","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Threat
Hunting","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":" Siem
Migrations - Fix rules upload API Error
Test.","number":212290,"url":"https://github.com/elastic/kibana/pull/212290","mergeCommit":{"message":"
Siem Migrations - Fix rules upload API Error Test. (#212290)\n\n##
Summary\n\nThis PR fixes a incorrect UI test :\n\n- Rules Upload File
component should only display API Error in case it\noccurs, while
previously the tests was check if the button is disabled\nor not.
Disability of button is irrelevant.\n\n### Checklist\n\nCheck the PR
satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"681cef4590e4847bdd1d6c9eaa68cd4f539e8cc2"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212290","number":212290,"mergeCommit":{"message":"
Siem Migrations - Fix rules upload API Error Test. (#212290)\n\n##
Summary\n\nThis PR fixes a incorrect UI test :\n\n- Rules Upload File
component should only display API Error in case it\noccurs, while
previously the tests was check if the button is disabled\nor not.
Disability of button is irrelevant.\n\n### Checklist\n\nCheck the PR
satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"681cef4590e4847bdd1d6c9eaa68cd4f539e8cc2"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Jatin Kathuria <[email protected]>
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request Feb 25, 2025
## Summary

This PR fixes a incorrect UI test :

- Rules Upload File component should only display API Error in case it
occurs, while previously the tests was check if the button is disabled
or not. Disability of button is irrelevant.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.


- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Feb 26, 2025
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

JoseLuisGJ pushed a commit to JoseLuisGJ/kibana that referenced this pull request Feb 27, 2025
## Summary

This PR fixes a incorrect UI test :

- Rules Upload File component should only display API Error in case it
occurs, while previously the tests was check if the button is disabled
or not. Disability of button is irrelevant.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.


- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

@logeekal
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

logeekal added a commit to logeekal/kibana that referenced this pull request Feb 28, 2025
## Summary

This PR fixes a incorrect UI test :

- Rules Upload File component should only display API Error in case it
occurs, while previously the tests was check if the button is disabled
or not. Disability of button is irrelevant.

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 681cef4)
kibanamachine added a commit that referenced this pull request Feb 28, 2025
…212301)

# Backport

This will backport the following commits from `main` to `8.x`:
- [ Siem Migrations - Fix rules upload API Error Test.
(#212290)](#212290)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Jatin
Kathuria","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-24T18:59:41Z","message":"
Siem Migrations - Fix rules upload API Error Test. (#212290)\n\n##
Summary\n\nThis PR fixes a incorrect UI test :\n\n- Rules Upload File
component should only display API Error in case it\noccurs, while
previously the tests was check if the button is disabled\nor not.
Disability of button is irrelevant.\n\n### Checklist\n\nCheck the PR
satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"681cef4590e4847bdd1d6c9eaa68cd4f539e8cc2","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Threat
Hunting","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":" Siem
Migrations - Fix rules upload API Error
Test.","number":212290,"url":"https://github.com/elastic/kibana/pull/212290","mergeCommit":{"message":"
Siem Migrations - Fix rules upload API Error Test. (#212290)\n\n##
Summary\n\nThis PR fixes a incorrect UI test :\n\n- Rules Upload File
component should only display API Error in case it\noccurs, while
previously the tests was check if the button is disabled\nor not.
Disability of button is irrelevant.\n\n### Checklist\n\nCheck the PR
satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"681cef4590e4847bdd1d6c9eaa68cd4f539e8cc2"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212290","number":212290,"mergeCommit":{"message":"
Siem Migrations - Fix rules upload API Error Test. (#212290)\n\n##
Summary\n\nThis PR fixes a incorrect UI test :\n\n- Rules Upload File
component should only display API Error in case it\noccurs, while
previously the tests was check if the button is disabled\nor not.
Disability of button is irrelevant.\n\n### Checklist\n\nCheck the PR
satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"681cef4590e4847bdd1d6c9eaa68cd4f539e8cc2"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Jatin Kathuria <[email protected]>
logeekal added a commit that referenced this pull request Feb 28, 2025
…212712)

# Backport

This will backport the following commits from `main` to `9.0`:
- [ Siem Migrations - Fix rules upload API Error Test.
(#212290)](#212290)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Jatin
Kathuria","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-24T18:59:41Z","message":"
Siem Migrations - Fix rules upload API Error Test. (#212290)\n\n##
Summary\n\nThis PR fixes a incorrect UI test :\n\n- Rules Upload File
component should only display API Error in case it\noccurs, while
previously the tests was check if the button is disabled\nor not.
Disability of button is irrelevant.\n\n### Checklist\n\nCheck the PR
satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"681cef4590e4847bdd1d6c9eaa68cd4f539e8cc2","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport
missing","v9.0.0","Team:Threat
Hunting","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":" Siem
Migrations - Fix rules upload API Error
Test.","number":212290,"url":"https://github.com/elastic/kibana/pull/212290","mergeCommit":{"message":"
Siem Migrations - Fix rules upload API Error Test. (#212290)\n\n##
Summary\n\nThis PR fixes a incorrect UI test :\n\n- Rules Upload File
component should only display API Error in case it\noccurs, while
previously the tests was check if the button is disabled\nor not.
Disability of button is irrelevant.\n\n### Checklist\n\nCheck the PR
satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"681cef4590e4847bdd1d6c9eaa68cd4f539e8cc2"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/212300","number":212300,"state":"MERGED","mergeCommit":{"sha":"797a695ae413cb28c52fe238432e9686cb218ad9","message":"[8.18]
Siem Migrations - Fix rules upload API Error Test. (#212290)
(#212300)\n\n# Backport\n\nThis will backport the following commits from
`main` to `8.18`:\n- [ Siem Migrations - Fix rules upload API Error
Test.\n(#212290)](https://github.com/elastic/kibana/pull/212290)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by:
Jatin Kathuria
<[email protected]>"}},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212290","number":212290,"mergeCommit":{"message":"
Siem Migrations - Fix rules upload API Error Test. (#212290)\n\n##
Summary\n\nThis PR fixes a incorrect UI test :\n\n- Rules Upload File
component should only display API Error in case it\noccurs, while
previously the tests was check if the button is disabled\nor not.
Disability of button is irrelevant.\n\n### Checklist\n\nCheck the PR
satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"681cef4590e4847bdd1d6c9eaa68cd4f539e8cc2"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/212301","number":212301,"state":"OPEN"}]}]
BACKPORT-->
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Feb 28, 2025
SoniaSanzV pushed a commit to SoniaSanzV/kibana that referenced this pull request Mar 4, 2025
) (elastic#212301)

# Backport

This will backport the following commits from `main` to `8.x`:
- [ Siem Migrations - Fix rules upload API Error Test.
(elastic#212290)](elastic#212290)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Jatin
Kathuria","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-24T18:59:41Z","message":"
Siem Migrations - Fix rules upload API Error Test. (elastic#212290)\n\n##
Summary\n\nThis PR fixes a incorrect UI test :\n\n- Rules Upload File
component should only display API Error in case it\noccurs, while
previously the tests was check if the button is disabled\nor not.
Disability of button is irrelevant.\n\n### Checklist\n\nCheck the PR
satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"681cef4590e4847bdd1d6c9eaa68cd4f539e8cc2","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Threat
Hunting","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":" Siem
Migrations - Fix rules upload API Error
Test.","number":212290,"url":"https://github.com/elastic/kibana/pull/212290","mergeCommit":{"message":"
Siem Migrations - Fix rules upload API Error Test. (elastic#212290)\n\n##
Summary\n\nThis PR fixes a incorrect UI test :\n\n- Rules Upload File
component should only display API Error in case it\noccurs, while
previously the tests was check if the button is disabled\nor not.
Disability of button is irrelevant.\n\n### Checklist\n\nCheck the PR
satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"681cef4590e4847bdd1d6c9eaa68cd4f539e8cc2"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212290","number":212290,"mergeCommit":{"message":"
Siem Migrations - Fix rules upload API Error Test. (elastic#212290)\n\n##
Summary\n\nThis PR fixes a incorrect UI test :\n\n- Rules Upload File
component should only display API Error in case it\noccurs, while
previously the tests was check if the button is disabled\nor not.
Disability of button is irrelevant.\n\n### Checklist\n\nCheck the PR
satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"681cef4590e4847bdd1d6c9eaa68cd4f539e8cc2"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Jatin Kathuria <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting Security Solution Threat Hunting Team v8.18.0 v8.19.0 v9.0.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants