kibana
kibana copied to clipboard
Failing test: X-Pack API Integration Tests.x-pack/test/api_integration/apis/cloud_security_posture/rules/v1·ts - cloud_security_posture GET internal/cloud_security_posture/rules/_find Should return 500 error code when provide both package policy id and benchmark id
A test failed on a tracked branch
Error: expected 200 "OK", got 500 "Internal Server Error"
at createPackagePolicy (helper.ts:102:6)
at Context.apply (v1.ts:68:32)
at Object.apply (wrap_function.js:73:30)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
----
at Test._assertStatus (node_modules/supertest/lib/test.js:252:14)
at /var/lib/buildkite-agent/builds/kb-n2-4-spot-678c9a35258c8c0b/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 - main
Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security)
The failure mentioned occurred within a helper function (await createPackagePolicy
), that runs almost on every test, and this is the only instance where it occurred.
Furthermore, I tested it 50 times with the flaky test runner, and it passed each time. You can view the results here: Build 6328 on Kibana Flaky Test Suite Runner.
Therefore, I am closing this ticket.