Skip to content

Commit

Permalink
Improve namespaces query parameter test
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Apr 1, 2021
1 parent 2712cd9 commit da1179f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/test/case_api_integration/common/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ export const findCasesAsUser = async ({
.get(`${getSpaceUrlPrefix(space)}${CASES_URL}/_find?sortOrder=asc&${appendToUrl}`)
.auth(user.username, user.password)
.set('kbn-xsrf', 'true')
.send({})
.send()
.expect(expectedHttpCode);

return res;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,12 @@ export default ({ getService }: FtrProviderContext): void => {
.set('kbn-xsrf', 'true')
.send()
.expect(400);

await supertest
.get(`${CASES_URL}/_find?sortOrder=asc&namespaces=*`)
.set('kbn-xsrf', 'true')
.send()
.expect(400);
});

it('should NOT allow to pass a non supported query parameter', async () => {
Expand Down

0 comments on commit da1179f

Please sign in to comment.