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

Failing test: X-Pack Endpoint Functional Tests.x-pack/test/security_solution_endpoint/apps/endpoint/endpoint_permissions·ts - endpoint Endpoint permissions: "before all" hook in "Endpoint permissions:" #143072

Closed
kibanamachine opened this issue Oct 11, 2022 · 13 comments
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Oct 11, 2022

A test failed on a tracked branch

EndpointDataLoadingError: Request failed with status code 502
    at wrapErrorIfNeeded (x-pack/plugins/security_solution/common/endpoint/data_loaders/utils.ts:19:7)
    at wrapErrorAndRejectPromise (x-pack/plugins/security_solution/common/endpoint/data_loaders/utils.ts:22:75)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at indexFleetEndpointPolicy (x-pack/plugins/security_solution/common/endpoint/data_loaders/index_fleet_endpoint_policy.ts:91:26)
    at indexEndpointHostDocs (x-pack/plugins/security_solution/common/endpoint/data_loaders/index_endpoint_hosts.ts:103:33)
    at indexHostsAndAlerts (x-pack/plugins/security_solution/common/endpoint/index_data.ts:84:26)
    at EndpointTestResources.loadEndpointData (x-pack/test/security_solution_endpoint/services/endpoint.ts:166:65)
    at Context.<anonymous> (x-pack/test/security_solution_endpoint/apps/endpoint/endpoint_permissions.ts:34:21)
    at Object.apply (node_modules/@kbn/test/target_node/src/functional_test_runner/lib/mocha/wrap_function.js:87:16) {
  meta: [AxiosError: Request failed with status code 502] {
    code: 'ERR_BAD_RESPONSE',
    config: {
      transitional: [Object],
      adapter: [Function: httpAdapter],
      transformRequest: [Array],
      transformResponse: [Array],
      timeout: 0,
      xsrfCookieName: 'XSRF-TOKEN',
      xsrfHeaderName: 'X-XSRF-TOKEN',
      maxContentLength: 30000000,
      maxBodyLength: 30000000,
      env: [Object],
      validateStatus: [Function: validateStatus],
      headers: [Object],
      method: 'post',
      url: 'http://elastic:changeme@localhost:5620/api/fleet/package_policies',
      data: '{"name":"With Eventing-5dbde5a8-b868-48e8-936f-f28ed3f92158","description":"Protect the worlds data","policy_id":"cf66d4d0-4969-11ed-9956-9de58832cf09","enabled":true,"inputs":[{"type":"endpoint","enabled":true,"streams":[],"config":{"policy":{"value":{"windows":{"events":{"dll_and_driver_load":true,"dns":true,"file":true,"network":true,"process":true,"registry":true,"security":true},"malware":{"mode":"prevent","blocklist":true},"ransomware":{"mode":"prevent","supported":true},"memory_protection":{"mode":"prevent","supported":true},"behavior_protection":{"mode":"prevent","supported":true},"popup":{"malware":{"message":"","enabled":true},"ransomware":{"message":"","enabled":true},"memory_protection":{"message":"","enabled":true},"behavior_protection":{"message":"","enabled":true}},"logging":{"file":"info"},"antivirus_registration":{"enabled":false},"attack_surface_reduction":{"credential_hardening":{"enabled":true}}},"mac":{"events":{"process":true,"file":true,"network":true},"malware":{"mode":"prevent","blocklist":true},"behavior_protection":{"mode":"prevent","supported":true},"memory_protection":{"mode":"prevent","supported":true},"popup":{"malware":{"message":"","enabled":true},"behavior_protection":{"message":"","enabled":true},"memory_protection":{"message":"","enabled":true}},"logging":{"file":"info"}},"linux":{"events":{"process":true,"file":true,"network":true,"session_data":false,"tty_io":false},"malware":{"mode":"prevent","blocklist":true},"behavior_protection":{"mode":"prevent","supported":true},"memory_protection":{"mode":"prevent","supported":true},"popup":{"malware":{"message":"","enabled":true},"behavior_protection":{"message":"","enabled":true},"memory_protection":{"message":"","enabled":true}},"logging":{"file":"info"}}}}}}],"namespace":"default","package":{"name":"endpoint","title":"endpoint","version":"8.5.0"}}',
      httpsAgent: null,
      paramsSerializer: [Function: paramsSerializer]
    },
    request: ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: true,
      _last: true,
      chunkedEncoding: false,
      shouldKeepAlive: false,
      maxRequestsOnConnectionReached: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: true,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      _contentLength: null,
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      _closed: true,
      socket: [Socket],
      _header: 'POST /api/fleet/package_policies HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'Content-Type: application/json\r\n' +
        'kbn-xsrf: kbn-client\r\n' +
        'User-Agent: axios/0.27.2\r\n' +
        'Content-Length: 1860\r\n' +
        'Host: localhost:5620\r\n' +
        'Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==\r\n' +
        'Connection: close\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: nop],
      agent: [Agent],
      socketPath: undefined,
      method: 'POST',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      path: '/api/fleet/package_policies',
      _ended: true,
      res: [IncomingMessage],
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: false,
      host: 'localhost',
      protocol: 'http:',
      _redirectable: [Writable],
      [Symbol(kCapture)]: false,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kOutHeaders)]: [Object: null prototype],
      [Symbol(kUniqueHeaders)]: null
    },
    response: {
      status: 502,
      statusText: 'Bad Gateway',
      headers: [Object],
      config: [Object],
      request: [ClientRequest],
      data: [Object]
    }
  }
}

First failure: CI Build - main

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Oct 11, 2022
@botelastic botelastic bot added the needs-team Issues missing a team label label Oct 11, 2022
@kibanamachine kibanamachine added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Oct 11, 2022
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Oct 11, 2022
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kevinlog
Copy link
Contributor

Fixed with PRs:
#143120

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
Projects
None yet
Development

No branches or pull requests

3 participants