Skip to content

Commit

Permalink
[Fleet] fix endpoint test (#167748)
Browse files Browse the repository at this point in the history
## Summary

Closes #167729

Getting an error with package verification, added a workaround to force
install the package first.

```
    status: 400,
    text: '{"statusCode":400,"error":"Bad Request","message":"endpoint-8.10.2 failed signature verification.","attributes":{"type":"verification_failed"}}',
    method: 'POST',
    path: '/api/fleet/package_policies'
  },
```

---------

Co-authored-by: Alex Szabo <[email protected]>
  • Loading branch information
juliaElastic and delanni authored Oct 2, 2023
1 parent 338e446 commit df3d0a6
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,14 @@ export default function (providerContext: FtrProviderContext) {
})
.expect(200);

await supertest
.post(`/api/fleet/epm/packages/endpoint/8.10.2`)
.set('kbn-xsrf', 'xxxx')
.send({
force: true,
})
.expect(200);

// add endpoint package policy, which is required for tamper protection
await supertest
.post(`/api/fleet/package_policies`)
Expand Down

0 comments on commit df3d0a6

Please sign in to comment.