mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[es/createKibanaIndex] remove duplicate test and expand another
This commit is contained in:
parent
8479a38e12
commit
5bad265168
1 changed files with 2 additions and 16 deletions
|
@ -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 () {
|
|||
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue