add config to swollow index creation errors
This commit is contained in:
parent
32e9201ba5
commit
7f75f65b5d
3 changed files with 7 additions and 2 deletions
3
test/fixtures/config.js
vendored
3
test/fixtures/config.js
vendored
|
@ -20,7 +20,8 @@ module.exports = {
|
||||||
bulk: [{
|
bulk: [{
|
||||||
indexName: '.kibana',
|
indexName: '.kibana',
|
||||||
indexDefinition: 'kibanaDefinition.js',
|
indexDefinition: 'kibanaDefinition.js',
|
||||||
source: 'kibana.js'
|
source: 'kibana.js',
|
||||||
|
haltOnFailure: false
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
4
test/fixtures/scenarioManager.js
vendored
4
test/fixtures/scenarioManager.js
vendored
|
@ -38,6 +38,10 @@ ScenarioManager.prototype.load = function (id) {
|
||||||
return self.client.bulk({
|
return self.client.bulk({
|
||||||
body: body
|
body: body
|
||||||
});
|
});
|
||||||
|
})
|
||||||
|
.catch(function (err) {
|
||||||
|
if (bulk.haltOnFailure === false) return;
|
||||||
|
throw err;
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
|
|
@ -24,7 +24,7 @@ define(function (require) {
|
||||||
// since we're using hash URLs, always reload first to force re-render
|
// since we're using hash URLs, always reload first to force re-render
|
||||||
return self.remote.refresh()
|
return self.remote.refresh()
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return self.remote.get(url)
|
return self.remote.get(url);
|
||||||
})
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
if (testStatusPage !== false) {
|
if (testStatusPage !== false) {
|
||||||
|
|
Loading…
Reference in a new issue