Skip to content

Commit

Permalink
fix functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpn committed Jan 22, 2023
1 parent 301833b commit ef3d69c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default ({ getService }: FtrProviderContext) => {

// TODO: https://github.com/elastic/kibana/pull/121644 clean up, make type-safe
expect(body?.execution_summary?.last_execution.message).to.eql(
`WARNING: This rule may not have the required read privileges to the following indices/index patterns: ["${index[0]}"]`
`This rule may not have the required read privileges to the following indices/index patterns: ["${index[0]}"]`
);

await deleteUserAndRole(getService, ROLES.detections_admin);
Expand Down Expand Up @@ -118,7 +118,7 @@ export default ({ getService }: FtrProviderContext) => {

// TODO: https://github.com/elastic/kibana/pull/121644 clean up, make type-safe
expect(body?.execution_summary?.last_execution.message).to.eql(
`WARNING: This rule may not have the required read privileges to the following indices/index patterns: ["${index[0]}"]. \nERROR: An error occurred during rule execution: message: "Aggregations were missing on threshold rule search result"`
`This rule may not have the required read privileges to the following indices/index patterns: ["${index[0]}"]`
);

await deleteUserAndRole(getService, ROLES.detections_admin);
Expand Down

0 comments on commit ef3d69c

Please sign in to comment.