add indexDefinition to emptyKibana scenario
fixes potential issue where server doesn't recreate it in time
This commit is contained in:
parent
e50bb3b859
commit
221063e62b
2 changed files with 19 additions and 2 deletions
5
test/fixtures/config.js
vendored
5
test/fixtures/config.js
vendored
|
@ -6,12 +6,12 @@ module.exports = {
|
||||||
makelogs: {
|
makelogs: {
|
||||||
baseDir: path.join(rootDir, 'makelogs'),
|
baseDir: path.join(rootDir, 'makelogs'),
|
||||||
bulk: [{
|
bulk: [{
|
||||||
indexDefinition: 'makelogsIndexDefinition.js',
|
|
||||||
indexName: 'logstash-2015.09.17',
|
indexName: 'logstash-2015.09.17',
|
||||||
|
indexDefinition: 'makelogsIndexDefinition.js',
|
||||||
source: 'logstash-2015.09.17.js'
|
source: 'logstash-2015.09.17.js'
|
||||||
}, {
|
}, {
|
||||||
indexDefinition: 'makelogsIndexDefinition.js',
|
|
||||||
indexName: 'logstash-2015.09.18',
|
indexName: 'logstash-2015.09.18',
|
||||||
|
indexDefinition: 'makelogsIndexDefinition.js',
|
||||||
source: 'logstash-2015.09.18.js'
|
source: 'logstash-2015.09.18.js'
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
|
@ -19,6 +19,7 @@ module.exports = {
|
||||||
baseDir: path.join(rootDir, 'emptyKibana'),
|
baseDir: path.join(rootDir, 'emptyKibana'),
|
||||||
bulk: [{
|
bulk: [{
|
||||||
indexName: '.kibana',
|
indexName: '.kibana',
|
||||||
|
indexDefinition: 'kibanaDefinition.js',
|
||||||
source: 'kibana.js'
|
source: 'kibana.js'
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|
16
test/fixtures/scenarios/emptyKibana/kibanaDefinition.js
vendored
Normal file
16
test/fixtures/scenarios/emptyKibana/kibanaDefinition.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
module.exports = {
|
||||||
|
settings: {
|
||||||
|
number_of_shards: 1,
|
||||||
|
number_of_replicas: 1
|
||||||
|
},
|
||||||
|
mappings: {
|
||||||
|
config: {
|
||||||
|
properties: {
|
||||||
|
buildNum: {
|
||||||
|
type: 'string',
|
||||||
|
index: 'not_analyzed'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue