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: Security Solution Cypress.x-pack/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" #176027

Closed
Tracked by #173731
kibanamachine opened this issue Feb 1, 2024 · 5 comments
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Feature:Related Integrations Security Solution Detection Rules Related Integrations feature Team:Detection Rule Management Security Detection Rule Management Team Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.

Comments

@kibanamachine
Copy link
Contributor

A test failed on a tracked branch

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

http://localhost:5687/api/fleet/package_policies

The response we received from your web server was:

  > 404: Not Found

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:5687/api/fleet/package_policies
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) Cypress/13.3.0 Chrome/114.0.5735.289 Electron/25.8.1 Safari/537.36",
  "accept": "*/*",
  "cookie": "sid=Fe26.2**a30e4bcf5c3b268e2bd88a5513ca304b7b453fb2fa5d5e9199b0f10dfd08fabf*cU9O_MLlmLKrwdlISTEPMg*sLuSXIX9RreVe9xmnMpklNRAl049r4GMXK8QwBv7u6ntt3vcMvezcsUYnvKAgvLfX5-EzePuQyW9e8fiWddWK9XRMyrIPH8iQiYLoAD8peHAI5FLsSLVyk6J_C3HCfTpA-vFd0L0B7rYXXNz-FkIrn0BehdMYSpYfywAHoMBihZRRltOfEQH8qUJS3H02fIe_cqhts0hqQRg5Xrdqpmw8Hc3uq7k0ZN3L8T59VA9gN2XmR7OJ8UrdtdEeRhBmiaY**7def3b782e8853a0ea5601aadd7a1f240b17c2cc345f9b0162577b65bd51190c*hN8S5pq-dPzvjkeEboFVw5QLoFd2P10-P-qrCMuDuFE",
  "authorization": "Basic c3lzdGVtX2luZGljZXNfc3VwZXJ1c2VyOmNoYW5nZW1l",
  "accept-encoding": "gzip, deflate",
  "content-type": "application/json",
  "content-length": 1540
}
Body: {"package":{"name":"aws","version":"1.17.0"},"name":"aws-1","namespace":"default","inputs":{"cloudtrail-aws-s3":{"enabled":false,"streams":{"aws.cloudtrail":{"enabled":true,"vars":{"fips_enabled":false,"tags":["forwarded","aws-cloudtrail"],"preserve_original_event":false,"cloudtrail_regex":"/CloudTrail/","cloudtrail_digest_regex":"/CloudTrail-Digest/","cloudtrail_insight_regex":"/CloudTrail-Insight/","max_number_of_messages":5}}}},"elb-aws-s3":{"enabled":false,"streams":{"aws.elb_logs":{"enabled":true,"vars":{"fips_enabled":false,"tags":["forwarded","aws-elb-logs"],"preserve_original_event":false,"max_number_of_messages":5}}}},"firewall-aws-s3":{"enabled":false,"streams":{"aws.firewall_logs":{"enabled":true,"vars":{"fips_enabled":false,"tags":["forwarded","aws-firewall-logs"],"preserve_original_event":false,"max_number_of_messages":5}}}},"s3-aws-s3":{"enabled":false,"streams":{"aws.s3access":{"enabled":true,"vars":{"fips_enabled":false,"tags":["forwarded","aws-s3access"],"preserve_original_event":false,"max_number_of_messages":5}}}},"waf-aws-s3":{"enabled":false,"streams":{"aws.waf":{"enabled":true,"vars":{"fips_enabled":false,"tags":["forwarded","aws-waf"],"preserve_original_event":false,"max_number_of_messages":5}}}},"cloudfront-aws-s3":{"enabled":true,"streams":{"aws.cloudfront_logs":{"enabled":true,"vars":{"queue_url":"https://example.com","fips_enabled":false,"tags":["forwarded","aws-cloudfront"],"preserve_original_event":false,"max_number_of_messages":5}}}}},"policy_id":"1a7575bb-7a76-4635-a90c-7bae11de5625"}

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

The response we got was:

Status: 404 - Not Found
Headers: {
  "elastic-api-version": "2023-10-31",
  "strict-transport-security": "max-age=31536000; includeSubDomains",
  "x-content-type-options": "nosniff",
  "referrer-policy": "no-referrer-when-downgrade",
  "permissions-policy": "camera=(), display-capture=(), fullscreen=(self), geolocation=(), microphone=(), web-share=()",
  "cross-origin-opener-policy": "same-origin",
  "x-frame-options": "SAMEORIGIN",
  "content-security-policy": "script-src 'report-sample' 'self'; worker-src 'report-sample' 'self' blob:; style-src 'report-sample' 'self' 'unsafe-inline'; frame-ancestors 'self'",
  "kbn-name": "kb-n2-4-spot-56740dc975f7f430",
  "kbn-license-sig": "2653816f9bf7ba166feb00a0152aa5fea11e981d9b101bb229a115375180a335",
  "content-type": "application/json; charset=utf-8",
  "cache-control": "private, no-cache, no-store, must-revalidate",
  "content-length": "99",
  "date": "Wed, 31 Jan 2024 23:55:53 GMT",
  "connection": "keep-alive",
  "keep-alive": "timeout=120"
}
Body: {
  "statusCode": 404,
  "error": "Not Found",
  "message": "[aws] package not installed or found in registry"
}


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:5687/__cypress/runner/cypress_runner.js:133043:72)
    at tryCatcher (http://localhost:5687/__cypress/runner/cypress_runner.js:1807:23)
    at Promise._settlePromiseFromHandler (http://localhost:5687/__cypress/runner/cypress_runner.js:1519:31)
    at Promise._settlePromise (http://localhost:5687/__cypress/runner/cypress_runner.js:1576:18)
    at Promise._settlePromise0 (http://localhost:5687/__cypress/runner/cypress_runner.js:1621:10)
    at Promise._settlePromises (http://localhost:5687/__cypress/runner/cypress_runner.js:1701:18)
    at _drainQueueStep (http://localhost:5687/__cypress/runner/cypress_runner.js:2407:12)
    at _drainQueue (http://localhost:5687/__cypress/runner/cypress_runner.js:2400:9)
    at Async._drainQueues (http://localhost:5687/__cypress/runner/cypress_runner.js:2416:5)
    at Async.drainQueues (http://localhost:5687/__cypress/runner/cypress_runner.js:2286:14)
From Your Spec Code:
    at rootRequest (webpack:///./tasks/api_calls/common.ts:29:5)
    at Context.eval (webpack:///./tasks/api_calls/integrations.ts:72:16)

First failure: CI Build - main

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Feb 1, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Feb 1, 2024
@kibanamachine kibanamachine added the Team:Detection Rule Management Security Detection Rule Management Team label Feb 1, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Feb 1, 2024
@banderror banderror added Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Feature:Related Integrations Security Solution Detection Rules Related Integrations feature labels Feb 1, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@elasticmachine
Copy link
Contributor

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

@banderror
Copy link
Contributor

The reason of this failure is probably the same as of another similar one: #176028 (comment)

I'm not skipping this test. I will keep the ticket in the backlog for a few days, and if the flake doesn't reoccur, I'll close it.

@banderror
Copy link
Contributor

The flake didn't reoccur, closing the ticket.

@banderror banderror closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 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 Feature:Related Integrations Security Solution Detection Rules Related Integrations feature Team:Detection Rule Management Security Detection Rule Management Team Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
Projects
None yet
Development

No branches or pull requests

3 participants