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

[Security Solution][Endpoint] Fix unhandled promise rejections in skipped tests #115354

Conversation

dasansol92
Copy link
Contributor

Summary

Fixes some unhandled promise rejections after upgrade node version and reenable skipped tests.

For maintainers

@dasansol92 dasansol92 added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution auto-backport Deprecated - use backport:version if exact versions are needed v7.16.0 labels Oct 18, 2021
@dasansol92 dasansol92 requested a review from a team as a code owner October 18, 2021 12:37
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-onboarding-and-lifecycle-mgt (Team:Onboarding and Lifecycle Mgt)

@dasansol92 dasansol92 requested review from a team and paul-tavares and removed request for parkiino and a team October 18, 2021 12:38
Copy link
Contributor

@kevinlog kevinlog left a comment

Choose a reason for hiding this comment

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

thanks for picking this up!

import {
EndpointPrivileges,
useEndpointPrivileges,
} from '../../../../../../common/components/user_privileges/use_endpoint_privileges';
Copy link
Contributor

Choose a reason for hiding this comment

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

just FYI - depending on whether my PR goes in first, you might need to adjust this path here and below on line 28

@@ -42,8 +36,17 @@ let coreStart: AppContextTestRender['coreStart'];
let http: typeof coreStart.http;
const generator = new EndpointDocGenerator();

// unhandled promise rejection: https://github.com/elastic/kibana/issues/112699
describe.skip('Policy trusted apps layout', () => {
describe('Policy trusted apps layout', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI: same here. My pending PR has a method that does this same thing called getEndpointPrivilegesInitialStateMock()

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 4.6MB 4.6MB -7.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@dasansol92 dasansol92 merged commit cf4a687 into elastic:master Oct 18, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 18, 2021
…pped tests (elastic#115354)

* Fix errors and comment code in middleware (pending to fix this)

* Fix endpoint list middleware test

* Fix policy TA layout test

* Fix test returning missing promise
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Oct 19, 2021
…pped tests (#115354) (#115399)

* Fix errors and comment code in middleware (pending to fix this)

* Fix endpoint list middleware test

* Fix policy TA layout test

* Fix test returning missing promise

Co-authored-by: David Sánchez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants