Skip to content

Commit

Permalink
Fix last broken api test
Browse files Browse the repository at this point in the history
  • Loading branch information
machadoum committed Oct 15, 2024
1 parent a4d3469 commit e317570
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,14 @@ export const assetCriticalityRouteHelpersFactory = (
upsert: async (
body: Record<string, unknown>,
{ 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,
Expand Down

0 comments on commit e317570

Please sign in to comment.