From e31757055868dbc98f6fd7f7e4699cc4ef08d837 Mon Sep 17 00:00:00 2001 From: machadoum Date: Tue, 15 Oct 2024 14:33:55 +0200 Subject: [PATCH] Fix last broken api test --- .../test_suites/entity_analytics/utils/asset_criticality.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/utils/asset_criticality.ts b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/utils/asset_criticality.ts index f4f684aeb7812..690e8f99b4611 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/utils/asset_criticality.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/utils/asset_criticality.ts @@ -86,15 +86,14 @@ export const assetCriticalityRouteHelpersFactory = ( upsert: async ( body: Record, { expectStatusCode }: { expectStatusCode: number } = { expectStatusCode: 200 } - ) => { + ) => await supertest .post(routeWithNamespace(ASSET_CRITICALITY_PUBLIC_URL, namespace)) .set('kbn-xsrf', 'true') .set(ELASTIC_HTTP_VERSION_HEADER, API_VERSIONS.public.v1) .set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana') .send(body) - .expect(expectStatusCode); - }, + .expect(expectStatusCode), delete: async ( idField: string, idValue: string,