Skip to content

[8.x] Siem Migrations - Fix rules upload API Error Test. (#212290)#212301

Merged
kibanamachine merged 2 commits intoelastic:8.xfrom
kibanamachine:backport/8.x/pr-212290
Feb 28, 2025
Merged

[8.x] Siem Migrations - Fix rules upload API Error Test. (#212290)#212301
kibanamachine merged 2 commits intoelastic:8.xfrom
kibanamachine:backport/8.x/pr-212290

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

## 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 kibanamachine added the backport This PR is a backport of another PR label Feb 24, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) February 24, 2025 19:15
@kibanamachine kibanamachine merged commit 2b9efce into elastic:8.x Feb 28, 2025
8 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @logeekal

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":"jatin.kathuria@elastic.co"},"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 <jatin.kathuria@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants