Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosant committed Jun 1, 2021
1 parent 22a7e49 commit 315868f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ export default function ({ getService }: FtrProviderContext) {
expect(response.body.index_pattern.title).to.be(title);
expect(response.body.index_pattern.fields.foo.name).to.be('foo');
expect(response.body.index_pattern.fields.foo.type).to.be('string');
expect(response.body.index_pattern.fields.foo.scripted).to.be(true);
expect(response.body.index_pattern.fields.foo.script).to.be("doc['field_name'].value");

expect(response.body.index_pattern.fields.bar.name).to.be('bar'); // created from es index
expect(response.body.index_pattern.fields.bar.type).to.be('boolean');
});

it('Can add scripted fields, other fields created from es index', async () => {
Expand Down

0 comments on commit 315868f

Please sign in to comment.