[es/createKibanaIndex] remove duplicate test and expand another

This commit is contained in:
spalger 2015-12-18 10:33:27 -07:00
parent 8479a38e12
commit 5bad265168

View file

@ -60,20 +60,7 @@ describe('plugins/elasticsearch', function () {
});
});
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);
});
});
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];
@ -84,7 +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);
.to.not.have.property('number_of_replicas');
});
});
@ -135,4 +122,3 @@ describe('plugins/elasticsearch', function () {
});
});