mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
commit
245ae24c4c
4 changed files with 5 additions and 23 deletions
|
@ -60,7 +60,7 @@ describe('plugins/elasticsearch', function () {
|
|||
});
|
||||
});
|
||||
|
||||
it('should be created with 1 shard and 1 replica', function () {
|
||||
it('should be created with 1 shard and default replica', function () {
|
||||
var fn = createKibanaIndex(server);
|
||||
return fn.then(function () {
|
||||
var params = client.indices.create.args[0][0];
|
||||
|
@ -71,22 +71,7 @@ describe('plugins/elasticsearch', function () {
|
|||
expect(params.body.settings)
|
||||
.to.have.property('number_of_shards', 1);
|
||||
expect(params.body.settings)
|
||||
.to.have.property('number_of_replicas', 1);
|
||||
});
|
||||
});
|
||||
|
||||
it('should be created with 1 shard and 1 replica', function () {
|
||||
var fn = createKibanaIndex(server);
|
||||
return fn.then(function () {
|
||||
var params = client.indices.create.args[0][0];
|
||||
expect(params)
|
||||
.to.have.property('body');
|
||||
expect(params.body)
|
||||
.to.have.property('settings');
|
||||
expect(params.body.settings)
|
||||
.to.have.property('number_of_shards', 1);
|
||||
expect(params.body.settings)
|
||||
.to.have.property('number_of_replicas', 1);
|
||||
.to.not.have.property('number_of_replicas');
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -137,4 +122,3 @@ describe('plugins/elasticsearch', function () {
|
|||
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ describe('plugins/elasticsearch', function () {
|
|||
testRoute({
|
||||
method: 'POST',
|
||||
url: '/elasticsearch/.kibana',
|
||||
payload: {settings: { number_of_shards: 1, number_of_replicas: 1 }},
|
||||
payload: {settings: { number_of_shards: 1 }},
|
||||
statusCode: 200
|
||||
});
|
||||
|
||||
|
|
|
@ -14,8 +14,7 @@ module.exports = function (server) {
|
|||
index: index,
|
||||
body: {
|
||||
settings: {
|
||||
number_of_shards: 1,
|
||||
number_of_replicas: 1
|
||||
number_of_shards: 1
|
||||
},
|
||||
mappings: {
|
||||
config: {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
module.exports = {
|
||||
settings: {
|
||||
number_of_shards: 1,
|
||||
number_of_replicas: 1
|
||||
number_of_shards: 1
|
||||
},
|
||||
mappings: {
|
||||
config: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue