Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ export default ({ getService }: FtrProviderContext): void => {
});

it('install prebuilt rules from a package', async () => {
const { body: bootstrapPrebuiltRulesResponse } = await detectionsApi
.bootstrapPrebuiltRules()
.expect(200);
const { statusCode: bootstrapPrebuiltRulesStatusCode, body: bootstrapPrebuiltRulesResponse } =
await detectionsApi.bootstrapPrebuiltRules();

// Assert body first to be able to see error messages in case of failure
expect(bootstrapPrebuiltRulesResponse).toMatchObject({
packages: expect.arrayContaining([
expect.objectContaining({
Expand All @@ -73,6 +73,7 @@ export default ({ getService }: FtrProviderContext): void => {
}),
]),
});
expect(bootstrapPrebuiltRulesStatusCode).toBe(200);

const { body: reviewPrebuiltRulesForInstallationResponse } = await supertest
.post(REVIEW_RULE_INSTALLATION_URL)
Expand Down