Skip to content

Commit

Permalink
fix filter functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Jun 12, 2023
1 parent 83dc781 commit d7698ba
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* Side Public License, v 1.
*/

import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common';
import { INITIAL_REST_VERSION_INTERNAL } from '@kbn/data-views-plugin/server/constants';
import expect from '@kbn/expect';
import { FtrProviderContext } from '../../../ftr_provider_context';

Expand Down Expand Up @@ -33,6 +35,7 @@ export default function ({ getService }: FtrProviderContext) {
it('can filter', async () => {
const a = await supertest
.put('/api/index_patterns/_fields_for_wildcard')
.set(ELASTIC_HTTP_VERSION_HEADER, INITIAL_REST_VERSION_INTERNAL)
.query({ pattern: 'helloworld*' })
.send({ index_filter: { exists: { field: 'bye' } } });

Expand Down

0 comments on commit d7698ba

Please sign in to comment.