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

[Cloud Security] Refactoring, removed duplicated code from tests #195492

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

kfirpeled
Copy link
Contributor

@kfirpeled kfirpeled commented Oct 8, 2024

Summary

Removed duplicated code cloud_security_posture_api_integration tests folder

Checklist

@kfirpeled kfirpeled requested a review from a team as a code owner October 8, 2024 19:21
@kfirpeled kfirpeled added release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Oct 8, 2024
@kfirpeled kfirpeled enabled auto-merge (squash) October 8, 2024 20:03
@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#7110

[✅] x-pack/test/cloud_security_posture_api/config.ts: 25/25 tests passed.

see run history

Copy link
Contributor

@opauloh opauloh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

* Checks if plugin initialization was done
* Required before indexing findings
*/
export const waitForPluginInitialized = ({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice enhancement, for the future I guess we can pass only the provider context and retrieve the parameters from it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, sometimes you want them to have the same instance being passed, this approach provides that.

@kfirpeled kfirpeled merged commit 776f05a into elastic:main Oct 8, 2024
25 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
@kbn/test-suites-xpack 722 723 +1

Total ESLint disabled count

id before after diff
@kbn/test-suites-xpack 746 747 +1

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 8, 2024
…stic#195492)

## Summary

Removed duplicated code cloud_security_posture_api_integration tests
folder

### Checklist

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

(cherry picked from commit 776f05a)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 8, 2024
#195492) (#195506)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Cloud Security] Refactoring, removed duplicated code from tests
(#195492)](#195492)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Kfir
Peled","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-08T20:55:04Z","message":"[Cloud
Security] Refactoring, removed duplicated code from tests
(#195492)\n\n## Summary\r\n\r\nRemoved duplicated code
cloud_security_posture_api_integration tests\r\nfolder\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests
changed","sha":"776f05a1b017d333f33ccd915c7fbc2a81e838fd","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor"],"title":"[Cloud
Security] Refactoring, removed duplicated code from
tests","number":195492,"url":"https://github.com/elastic/kibana/pull/195492","mergeCommit":{"message":"[Cloud
Security] Refactoring, removed duplicated code from tests
(#195492)\n\n## Summary\r\n\r\nRemoved duplicated code
cloud_security_posture_api_integration tests\r\nfolder\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests
changed","sha":"776f05a1b017d333f33ccd915c7fbc2a81e838fd"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195492","number":195492,"mergeCommit":{"message":"[Cloud
Security] Refactoring, removed duplicated code from tests
(#195492)\n\n## Summary\r\n\r\nRemoved duplicated code
cloud_security_posture_api_integration tests\r\nfolder\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests
changed","sha":"776f05a1b017d333f33ccd915c7fbc2a81e838fd"}}]}]
BACKPORT-->

Co-authored-by: Kfir Peled <[email protected]>
@bhavyarm bhavyarm added the Team:Cloud Security Cloud Security team related label Oct 18, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants