Skip to content

Commit

Permalink
fixing functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Apr 29, 2020
1 parent 191cfad commit d70f40d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,11 @@ export default ({ getService }: FtrProviderContext) => {
model_plot_config: { enabled: true },
},
expected: {
responseCode: 403,
responseCode: 404,
responseBody: {
statusCode: 403,
error: 'Forbidden',
message:
'[security_exception] action [cluster:admin/xpack/ml/job/put] is unauthorized for user [ml_viewer]',
statusCode: 404,
error: 'Not Found',
message: 'Not Found',
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions x-pack/test/api_integration/apis/ml/jobs/jobs_summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ export default ({ getService }: FtrProviderContext) => {
requestBody: {},
// Note that the jobs and datafeeds are loaded async so the actual error message is not deterministic.
expected: {
responseCode: 403,
error: 'Forbidden',
responseCode: 404,
error: 'Not Found',
},
},
];
Expand Down

0 comments on commit d70f40d

Please sign in to comment.