Skip to content

Commit 0778d0c

Browse files
[CSP] Un-skip benchmark v2 API integration test (stale skip from #243499) (#271814)
## Summary Un-skips `x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/benchmark/v2.ts`. This test was temporarily skipped in November 2025 while a bug in `@kbn/cleanup-before-exit` was fixed ([#243499](#243499)). The fix was merged the same day and has been live for 6+ months. All other suites skipped in that batch have been re-enabled; this one was overlooked. Tracking issue: #244717 ## Checklist - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/GUIDELINE.md) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/) was added for features that require explanation or tutorials - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [ ] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) ## Identify risks - Low. Only un-skipping a previously passing test. The underlying infrastructure bug (`@kbn/cleanup-before-exit` passing `undefined` exit code) was fixed months ago. Made with [Cursor](https://cursor.com) Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent f655014 commit 0778d0c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/benchmark

x-pack/solutions/security/test/api_integration/apis/cloud_security_posture/benchmark/v2.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ export default function ({ getService }: FtrProviderContext) {
1414
const esArchiver = getService('esArchiver');
1515
const kibanaServer = getService('kibanaServer');
1616

17-
// TODO: see https://github.com/elastic/kibana/pull/243499
18-
describe.skip('GET /internal/cloud_security_posture/benchmark', () => {
17+
describe('GET /internal/cloud_security_posture/benchmark', () => {
1918
let agentPolicyId: string;
2019
let agentPolicyId2: string;
2120
let agentPolicyId3: string;
@@ -25,6 +24,12 @@ export default function ({ getService }: FtrProviderContext) {
2524
await kibanaServer.savedObjects.cleanStandardList();
2625
await esArchiver.load('x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server');
2726

27+
await supertest
28+
.post(`/api/fleet/setup`)
29+
.set(ELASTIC_HTTP_VERSION_HEADER, '2023-10-31')
30+
.set('kbn-xsrf', 'xxxx')
31+
.expect(200);
32+
2833
const { body: agentPolicyResponse } = await supertest
2934
.post(`/api/fleet/agent_policies`)
3035
.set(ELASTIC_HTTP_VERSION_HEADER, '2023-10-31')

0 commit comments

Comments
 (0)