Skip to content

Commit

Permalink
Remove ES2 specific test values
Browse files Browse the repository at this point in the history
  • Loading branch information
orangejulius committed Jul 5, 2019
1 parent 7f94a7b commit 229d7f2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions integration/dynamic_templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,13 @@ function addendumAssertion( type, namespace, value, common ){
var addendumProperties = properties.addendum.properties;

t.true([
'string', // elasticsearch 2.4
'keyword' // elasticsearch 5.6
].includes( addendumProperties[namespace].type ));

t.true([
'no', // elasticsearch 2.4
false // elasticsearch 5.6
].includes( addendumProperties[namespace].index ));

// elasticsearch 2.4
if( addendumProperties[namespace].fielddata ){
t.equal( addendumProperties[namespace].fielddata.format, 'disabled' );
}

// elasticsearch 5.6
if( addendumProperties[namespace].doc_values ){
t.equal( addendumProperties[namespace].doc_values, false );
Expand All @@ -167,4 +160,4 @@ function addendumAssertion( type, namespace, value, common ){

suite.run( t.end );
};
}
}

0 comments on commit 229d7f2

Please sign in to comment.