[functional tests] Remove include_in_all (#10268)

* [functional tests] Remove include_in_all

* [functional tests] Get milliseconds from date
This commit is contained in:
Jonathan Budzenski 2017-02-09 13:52:07 -06:00 committed by GitHub
parent 20ea24f358
commit 0d9e51f72f
3 changed files with 3 additions and 5 deletions

View file

@ -36,8 +36,7 @@ module.exports = {
},
'id': {
'type': 'integer',
'index': true,
'include_in_all': false
'index': true
},
'clientip': {
'type': 'ip'

View file

@ -36,8 +36,7 @@ module.exports = {
},
'id': {
'type': 'integer',
'index': true,
'include_in_all': false
'index': true
},
'clientip': {
'type': 'ip'

View file

@ -323,7 +323,7 @@ bdd.describe('creating and using Painless date scripted fields', function descri
await PageObjects.settings
.addScriptedField(scriptedPainlessFieldName2, 'painless', 'date',
{ format: 'Date', datePattern: 'YYYY-MM-DD HH:00' }, '1',
'doc[\'utc_time\'].value + (1000) * 60 * 60');
'doc[\'utc_time\'].value.getMillis() + (1000) * 60 * 60');
await PageObjects.common.try(async function() {
expect(parseInt(await PageObjects.settings.getScriptedFieldsTabCount())).to.be(startingCount + 1);
});