Skip to content

Commit

Permalink
Merge pull request #3 from machadoum/fix-ci
Browse files Browse the repository at this point in the history
Fix last broken api test
  • Loading branch information
CAWilson94 authored Oct 15, 2024
2 parents 29e251a + e317570 commit 2af61d4
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 2af61d4

Please sign in to comment.