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: Entity Analytics - Risk Engine Integration Tests - ESS Env - Trial License.x-pack/test/security_solution_api_integration/test_suites/entity_analytics/risk_engine/trial_license_complete_tier/init_and_status_apis·ts - Entity Analytics - Risk Engine @ess @serverless init_and_status_apis init api should install resources on init call #179578

Closed
kibanamachine opened this issue Mar 27, 2024 · 2 comments · Fixed by #183402
Assignees
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Entity Analytics Security Entity Analytics Team

Comments

@kibanamachine
Copy link
Contributor

A test failed on a tracked branch

Error: expected 200 "OK", got 400 "Bad Request"
    at Object.init (risk_engine.ts:498:8)
    at Context.apply (init_and_status_apis.ts:62:32)
    at Object.apply (wrap_function.js:73:30)
----
    at Test._assertStatus (node_modules/supertest/lib/test.js:252:14)
    at /var/lib/buildkite-agent/builds/kb-n2-4-spot-e668fca706221537/elastic/kibana-on-merge/kibana/node_modules/supertest/lib/test.js:308:13
    at Test._assertFunction (node_modules/supertest/lib/test.js:285:13)
    at Test.assert (node_modules/supertest/lib/test.js:164:23)
    at localAssert (node_modules/supertest/lib/test.js:120:14)
    at fn (node_modules/supertest/lib/test.js:125:7)
    at Test.callback (node_modules/superagent/src/node/index.js:925:3)
    at fn (node_modules/superagent/src/node/index.js:1166:18)
    at IncomingMessage.<anonymous> (node_modules/superagent/src/node/parsers/json.js:19:7)
    at IncomingMessage.emit (node:events:530:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)

First failure: CI Build - 8.13

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Mar 27, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Mar 27, 2024
@kibanamachine kibanamachine added the Team:Entity Analytics Security Entity Analytics Team label Mar 27, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-entity-analytics (Team:Entity Analytics)

@machadoum
Copy link
Member

PR: #183402

machadoum added a commit that referenced this issue May 16, 2024
## Summary

The error seems to be happening because we try to delete the transform
by calling `es.transform.deleteTransform` without checking if it exists
first.

* Reuse `removeLegacyTransforms` to delete transforms if they exist
* Remove `.expect(200);` from `clearLegacyDashboards`. If the dashboard
doesn't exist, the test shouldn't fail.

It fixes: #179578
#182541


Flaky test runner:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5978
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:Entity Analytics Security Entity Analytics Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants