Skip to content

Failing test: Security Solution Cypress.x-pack/solutions/security/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/related_integrations/related_integrations·cy·ts - Related integrations integrations installed (AWS CloudFront (enabled), AWS CloudTrail (disabled), System (enabled)) rules management table "before each" hook for "should display a badge with the installed integrations" "before each" hook for "should display a badge with the installed integrations" #239356

@kibanamachine

Description

@kibanamachine

A test failed on a tracked branch

CypressError: `cy.request()` failed on:

http://localhost:5694/api/fleet/agent_policies?sys_monitoring=true

The response we received from your web server was:

  > 400: Bad Request

This was considered a failure because the status code was not `2xx` or `3xx`.

If you do not want status codes to cause failures pass the option: `failOnStatusCode: false`

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

The request we sent was:

Method: POST
URL: http://localhost:5694/api/fleet/agent_policies?sys_monitoring=true
Headers: {
  "Connection": "keep-alive",
  "kbn-xsrf": "cypress-creds",
  "x-elastic-internal-origin": "security-solution",
  "elastic-api-version": [
    "2023-10-31"
  ],
  "user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/141.0.0.0 Safari/537.36",
  "accept": "*/*",
  "cookie": "sid=Fe26.2**674c5df2863c0e6b9fc208de57636347869316f589ebec2f81a6e61c8237c46e*FHSraa6scLTMo5HNP3n-tw*iNtmRRwBqh7EYleIfZq8KEioj2dq0P47pjXW5rmCZ9Fbrg9aRjrRdx0Sez6pKR06i8eQJNDM8ZhxriCD_nME7a3JuewEHWfamsziPRn__Hj9f9jnixiQTsjNLeGqLoVogzm6PA6jPq2DgiEHOvLLcmCzXtsF5Hbr-ItAi8SYhiYiGizccN5bMMAJVAKuqcncisjQx-MLhGTQEmgp5eoKekyjHMNVqqTYYpl-XFfsaZEVjUDfsixggGSs_ORgn8dO**8200f07d26704ffd9f008aea007de9dd83d6f7e0e1d5099fffa4f4bdf90747c5*8zokqmA3Ong664go_M6m9XEvQ2LiNCQmsZwB5aAbqbs",
  "authorization": "Basic c3lzdGVtX2luZGljZXNfc3VwZXJ1c2VyOmNoYW5nZW1l",
  "accept-encoding": "gzip, deflate",
  "content-type": "application/json",
  "content-length": 104
}
Body: {"name":"Agent policy","namespace":"default","monitoring_enabled":["logs"],"inactivity_timeout":1209600}

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

The response we got was:

Status: 400 - Bad Request
Headers: {
  "elastic-api-version": "2023-10-31",
  "x-content-type-options": "nosniff",
  "referrer-policy": "strict-origin-when-cross-origin",
  "permissions-policy": "camera=(), display-capture=(), fullscreen=(self), geolocation=(), microphone=(), web-share=()",
  "cross-origin-opener-policy": "same-origin",
  "content-security-policy": "script-src 'report-sample' 'self'; worker-src 'report-sample' 'self' blob:; style-src 'report-sample' 'self' 'unsafe-inline'",
  "content-security-policy-report-only": "form-action 'report-sample' 'self'; object-src 'report-sample' 'none'",
  "kbn-name": "bk-agent-prod-gcp-1760622540552787710.c.elastic-ci-prod.internal",
  "kbn-license-sig": "8522f47522eaf4f4c838924f7bde13439545a7f1904789486afc23ecf2629e07",
  "content-type": "application/json; charset=utf-8",
  "cache-control": "private, no-cache, no-store, must-revalidate",
  "content-length": "297",
  "date": "Thu, 16 Oct 2025 14:11:15 GMT",
  "connection": "keep-alive",
  "keep-alive": "timeout=120"
}
Body: {
  "statusCode": 400,
  "error": "Bad Request",
  "message": "can not read a block mapping entry; a multiline key may not be an implicit key (5:13)\n\n 2 | and ${host.os_version} != \"15 SP2\" and ${hos ...\n 3 | \n 4 | \n 5 | ignore_older: 72h\n-----------------^\n 6 | paths:\n 7 |   - /var/log/auth.log*"
}


https://on.cypress.io/request

Because this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `integrations installed (AWS...`
    at <unknown> (http://localhost:5694/__cypress/runner/cypress_runner.js:132876:72)
    at tryCatcher (http://localhost:5694/__cypress/runner/cypress_runner.js:1830:23)
    at Promise._settlePromiseFromHandler (http://localhost:5694/__cypress/runner/cypress_runner.js:1542:31)
    at Promise._settlePromise (http://localhost:5694/__cypress/runner/cypress_runner.js:1599:18)
    at Promise._settlePromise0 (http://localhost:5694/__cypress/runner/cypress_runner.js:1644:10)
    at Promise._settlePromises (http://localhost:5694/__cypress/runner/cypress_runner.js:1724:18)
    at _drainQueueStep (http://localhost:5694/__cypress/runner/cypress_runner.js:2430:12)
    at _drainQueue (http://localhost:5694/__cypress/runner/cypress_runner.js:2423:9)
    at Async._drainQueues (http://localhost:5694/__cypress/runner/cypress_runner.js:2439:5)
    at Async.drainQueues (http://localhost:5694/__cypress/runner/cypress_runner.js:2309:14)
From Your Spec Code:
    at rootRequest (webpack:///./tasks/api_calls/common.ts:45:14)
    at installIntegrations (webpack:///./tasks/api_calls/integrations.ts:62:41)
    at Context.eval (webpack:///./e2e/detection_response/rule_management/related_integrations/related_integrations.cy.ts:174:26)

First failure: kibana-on-merge - main

Metadata

Metadata

Assignees

Labels

Feature:Related IntegrationsSecurity Solution Detection Rules Related Integrations featureFeature:Rule ManagementSecurity Solution Detection Rule Management areaTeam:Detection Rule ManagementSecurity Detection Rule Management Teamfailed-testA test failure on a tracked branch, potentially flaky-test

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions