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: Osquery Cypress.x-pack/plugins/osquery/cypress/e2e/all/alerts_linked_apps·cy·ts - Alert Event Details "after each" hook for "should be able to add investigation guides to response actions" "after each" hook for "should be able to add investigation guides to response actions" #181891

Open
kibanamachine opened this issue Apr 26, 2024 · 1 comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Defend Workflows “EDR Workflows” sub-team of Security Solution

Comments

@kibanamachine
Copy link
Contributor

A test failed on a tracked branch

CypressError: `cy.request()` failed trying to load:

http://localhost:5623/api/detection_engine/rules?id=77c5e45d-406c-431d-8cdb-5a48255b299d

We attempted to make an http request to this URL but the request failed without a response.

We received this error at the network level:

  > Error: connect ECONNREFUSED 127.0.0.1:5623

-----------------------------------------------------------

The request we sent was:

Method: DELETE
URL: http://localhost:5623/api/detection_engine/rules?id=77c5e45d-406c-431d-8cdb-5a48255b299d

-----------------------------------------------------------

Common situations why this would fail:
  - you don't have internet access
  - you forgot to run / boot your web server
  - your web server isn't accessible
  - you have weird network configuration settings on your computer

https://on.cypress.io/request

Because this error occurred during a `after each` hook we are skipping the remaining tests in the current suite: `Alert Event Details`
    at <unknown> (http://localhost:5623/__cypress/runner/cypress_runner.js:133058:70)
    at tryCatcher (http://localhost:5623/__cypress/runner/cypress_runner.js:1807:23)
    at <unknown> (http://localhost:5623/__cypress/runner/cypress_runner.js:4203:37)
    at tryCatcher (http://localhost:5623/__cypress/runner/cypress_runner.js:1807:23)
    at Promise._settlePromiseFromHandler (http://localhost:5623/__cypress/runner/cypress_runner.js:1519:31)
    at Promise._settlePromise (http://localhost:5623/__cypress/runner/cypress_runner.js:1576:18)
    at Promise._settlePromise0 (http://localhost:5623/__cypress/runner/cypress_runner.js:1621:10)
    at Promise._settlePromises (http://localhost:5623/__cypress/runner/cypress_runner.js:1697:18)
    at _drainQueueStep (http://localhost:5623/__cypress/runner/cypress_runner.js:2407:12)
    at _drainQueue (http://localhost:5623/__cypress/runner/cypress_runner.js:2400:9)
    at Async._drainQueues (http://localhost:5623/__cypress/runner/cypress_runner.js:2416:5)
    at Async.drainQueues (http://localhost:5623/__cypress/runner/cypress_runner.js:2286:14)
From Your Spec Code:
    at request (webpack:///./tasks/common.ts:21:5)
    at cleanupRule (webpack:///./tasks/api_fixtures.ts:236:10)
    at Context.eval (webpack:///./e2e/all/alerts_linked_apps.cy.ts:45:18)

From Node.js Internals:
  RequestError: Error: connect ECONNREFUSED 127.0.0.1:5623
      at new r (<embedded>:1832:361359)
      at ee.callback (<embedded>:1832:367360)
      at e.callback.s.callback [as _callback] (<embedded>:1832:366806)
      at s._callback.s.callback.s.callback (<embedded>:2050:91633)
      at ee.emit (node:events:513:28)
      at ee.onRequestError (<embedded>:2050:100575)
      at ClientRequest.emit (node:events:525:35)
      at Socket.socketErrorListener (node:_http_client:502:9)
      at Socket.emit (node:events:513:28)
      at emitErrorNT (node:internal/streams/destroy:151:8)
      at emitErrorCloseNT (node:internal/streams/destroy:116:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

First failure: CI Build - main

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Apr 26, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Apr 26, 2024
@kibanamachine kibanamachine added the Team:Defend Workflows “EDR Workflows” sub-team of Security Solution label Apr 26, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-defend-workflows (Team:Defend Workflows)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Apr 26, 2024
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:Defend Workflows “EDR Workflows” sub-team of Security Solution
Projects
None yet
Development

No branches or pull requests

2 participants